return -1;
*it = htonl(*it);
}
- t = (char *) it;
+ t = (unsigned char *) it;
} /*@switchbreak@*/ break;
case RPM_INT16_TYPE:
{ int_16 * it = (int_16 *) t;
return -1;
*it = htons(*it);
}
- t = (char *) it;
+ t = (unsigned char *) it;
} /*@switchbreak@*/ break;
/*@=bounds@*/
default:
pad = 0;
for (i = 0, entry = h->index; i < h->indexUsed; i++, entry++) {
const char * src;
-char *t;
+ unsigned char *t;
int count;
int rdlen;
if (entry->data == NULL || entry->length <= 0)
continue;
-t = te;
+ t = (unsigned char*)te;
pe->tag = htonl(entry->info.tag);
pe->type = htonl(entry->info.type);
pe->count = htonl(entry->info.count);
entryInfo pe = (entryInfo) (ei + 2);
/*@=castexpose@*/
/*@-boundsread@*/
- char * dataStart = (char *) (pe + ntohl(ei[0]));
+ unsigned char * dataStart = (unsigned char *) (pe + ntohl(ei[0]));
/*@=boundsread@*/
int_32 rdl = -entry->info.offset; /* negative offset */
int_32 ril = rdl/sizeof(*pe);
pe = (entryInfo) memcpy(ei + 2, pe, (ril * sizeof(*pe)));
/*@=castexpose@*/
- dataStart = (char *) memcpy(pe + ril, dataStart, rdl);
+ dataStart = (unsigned char *) memcpy(pe + ril, dataStart, rdl);
/*@=sizeoftype@*/
/*@=bounds@*/