+2001-05-08 Ezra Peisach <epeisach@mit.edu>
+
+ * disp_major_status.c (display_unknown): Remove unused variable.
+
+ * util_token.c (g_make_token_header): Remove incorrect cast of
+ length argument to memcpy.
+
+ * oid_ops.c (generic_gss_str_to_oid): Cast argument of isxxx()
+ functions to int - avoids gcc warning when these are implemented
+ as macros indexing an array.
+
+2001-05-04 Ezra Peisach <epeisach@mit.edu>
+
+ * disp_major_status.c (display_unknown): Declare as static. Remove
+ non-useful code.
+
2001-04-17 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (unixmac): Target deleted.
/**/
-int display_unknown(kind, value, buffer)
+static int
+display_unknown(kind, value, buffer)
const char *kind;
OM_uint32 value;
gss_buffer_t buffer;
{
- int len;
char *str;
if ((str =
- (char *) xmalloc(len = strlen(unknown_error)+strlen(kind)+7)) == NULL)
+ (char *) xmalloc(strlen(unknown_error)+strlen(kind)+7)) == NULL)
return(0);
sprintf(str, unknown_error, kind, value);
bp = (char *) oid_str->value;
cp = bp;
/* Skip over leading space */
- while ((bp < &cp[oid_str->length]) && isspace(*bp))
+ while ((bp < &cp[oid_str->length]) && isspace((int) *bp))
bp++;
if (*bp == '{') {
brace = 1;
bp++;
}
- while ((bp < &cp[oid_str->length]) && isspace(*bp))
+ while ((bp < &cp[oid_str->length]) && isspace((int) *bp))
bp++;
startp = bp;
nbytes = 0;
*minor_status = EINVAL;
return(GSS_S_FAILURE);
}
- while ((bp < &cp[oid_str->length]) && isdigit(*bp))
+ while ((bp < &cp[oid_str->length]) && isdigit((int) *bp))
bp++;
- while ((bp < &cp[oid_str->length]) && isspace(*bp))
+ while ((bp < &cp[oid_str->length]) && isspace((int) *bp))
bp++;
if (sscanf(bp, "%ld", &numbuf) != 1) {
*minor_status = EINVAL;
return(GSS_S_FAILURE);
}
- while ((bp < &cp[oid_str->length]) && isdigit(*bp))
+ while ((bp < &cp[oid_str->length]) && isdigit((int) *bp))
bp++;
- while ((bp < &cp[oid_str->length]) && isspace(*bp))
+ while ((bp < &cp[oid_str->length]) && isspace((int) *bp))
bp++;
nbytes++;
- while (isdigit(*bp)) {
+ while (isdigit((int) *bp)) {
if (sscanf(bp, "%ld", &numbuf) != 1) {
*minor_status = EINVAL;
return(GSS_S_FAILURE);
nbytes++;
numbuf >>= 7;
}
- while ((bp < &cp[oid_str->length]) && isdigit(*bp))
+ while ((bp < &cp[oid_str->length]) && isdigit((int) *bp))
bp++;
- while ((bp < &cp[oid_str->length]) && isspace(*bp))
+ while ((bp < &cp[oid_str->length]) && isspace((int) *bp))
bp++;
}
if (brace && (*bp != '}')) {
op = (unsigned char *) (*oid)->elements;
bp = startp;
sscanf(bp, "%ld", &numbuf);
- while (isdigit(*bp))
+ while (isdigit((int) *bp))
bp++;
- while (isspace(*bp))
+ while (isspace((int) *bp))
bp++;
onumbuf = 40*numbuf;
sscanf(bp, "%ld", &numbuf);
onumbuf += numbuf;
*op = (unsigned char) onumbuf;
op++;
- while (isdigit(*bp))
+ while (isdigit((int) *bp))
bp++;
- while (isspace(*bp))
+ while (isspace((int) *bp))
bp++;
- while (isdigit(*bp)) {
+ while (isdigit((int) *bp)) {
sscanf(bp, "%ld", &numbuf);
nbytes = 0;
/* Have to fill in the bytes msb-first */
idx--;
numbuf >>= 7;
}
- while (isdigit(*bp))
+ while (isdigit((int) *bp))
bp++;
- while (isspace(*bp))
+ while (isspace((int) *bp))
bp++;
}
*minor_status = 0;
der_write_length(buf, 4 + mech->length + body_size);
*(*buf)++ = 0x06;
*(*buf)++ = (unsigned char) mech->length;
- TWRITE_STR(*buf, mech->elements, ((int) mech->length));
+ TWRITE_STR(*buf, mech->elements, mech->length);
*(*buf)++ = (unsigned char) ((tok_type>>8)&0xff);
*(*buf)++ = (unsigned char) (tok_type&0xff);
}