From: Ezra Peisach Date: Tue, 3 Oct 2000 19:05:26 +0000 (+0000) Subject: * gssapiP_generic.h (g_OID_equal): Instead of casting argument to X-Git-Tag: krb5-1.3-alpha1~1862 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8240f1e73b5e4be292ec0611b3f761ca2488af70;p=krb5.git * gssapiP_generic.h (g_OID_equal): Instead of casting argument to memcmp as int, cast to unsigned int to match prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12717 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/generic/ChangeLog b/src/lib/gssapi/generic/ChangeLog index d6b6166b6..0cf31390c 100644 --- a/src/lib/gssapi/generic/ChangeLog +++ b/src/lib/gssapi/generic/ChangeLog @@ -1,3 +1,8 @@ +2000-10-03 Ezra Peisach + + * gssapiP_generic.h (g_OID_equal): Instead of casting argument to + memcmp as int, cast to unsigned int to match prototype. + 2000-08-03 Ken Raeburn * Makefile.in (SRCS, OBJS, STLIBOBJS): Remove util_canonhost. diff --git a/src/lib/gssapi/generic/gssapiP_generic.h b/src/lib/gssapi/generic/gssapiP_generic.h index 8bdda4bc0..a9477164b 100644 --- a/src/lib/gssapi/generic/gssapiP_generic.h +++ b/src/lib/gssapi/generic/gssapiP_generic.h @@ -44,7 +44,7 @@ #define g_OID_equal(o1,o2) \ (((o1)->length == (o2)->length) && \ - (memcmp((o1)->elements,(o2)->elements,(int) (o1)->length) == 0)) + (memcmp((o1)->elements,(o2)->elements,(unsigned int) (o1)->length) == 0)) /* this code knows that an int on the wire is 32 bits. The type of num should be at least this big, or the extra shifts may do weird