From 8240f1e73b5e4be292ec0611b3f761ca2488af70 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 3 Oct 2000 19:05:26 +0000 Subject: [PATCH] * 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 --- src/lib/gssapi/generic/ChangeLog | 5 +++++ src/lib/gssapi/generic/gssapiP_generic.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- 2.26.2