printf("encode_krb5_%s%s:\n", typestring, description);
r = trval2(stdout, code->data, code->length, 0, &rlen);
printf("\n\n");
- if (rlen != code->length) {
+ if (rlen < 0 || (unsigned int) rlen != code->length) {
printf("Error: length mismatch: was %d, parsed %d\n",
code->length, rlen);
exit(1);
krb5_octet * ref;
krb5_octet * var;
{
- int i, p=TRUE;
+ unsigned int i, p=TRUE;
if(ref==var) return TRUE;
else if(ref == NULL || var == NULL) return FALSE;
char * ref;
char * var;
{
- int i, p=TRUE;
+ unsigned int i, p=TRUE;
if(ref==var) return TRUE;
else if(ref == NULL || var == NULL) return FALSE;
p = (unsigned char *)malloc(maxlen);
len = 0;
while ((cc = fgetc(fin)) != EOF) {
- if (len == maxlen) {
+ if ((unsigned int) len == maxlen) {
maxlen += BUFSIZ;
p = (unsigned char *)realloc(p, maxlen);
}
if(*s==NULL) return ENOMEM;
strcpy(*s,"<EMPTY>");
}else{
- int i;
+ unsigned int i;
*s = (char*)calloc((size_t) 3*(code->length), sizeof(char));
if(*s == NULL) return ENOMEM;