From: John Kohl Date: Thu, 8 Nov 1990 15:10:48 +0000 (+0000) Subject: change bcmp to memcmp X-Git-Tag: krb5-1.0-alpha3~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7afd4d88dea2375cdb8dcc545b11d4d983cca3ad;p=krb5.git change bcmp to memcmp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1425 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/file/fcc_retrv.c b/src/lib/krb5/ccache/file/fcc_retrv.c index a7ffbc9c4..ac3791195 100644 --- a/src/lib/krb5/ccache/file/fcc_retrv.c +++ b/src/lib/krb5/ccache/file/fcc_retrv.c @@ -20,7 +20,7 @@ static char rcsid_fcc_retrv_c[] = "$Id$"; #define set(bits) (whichfields & bits) #define flags_match(a,b) (a & b == a) -#define times_match_exact(t1,t2) (bcmp((char *)(t1), (char *)(t2), sizeof(*(t1))) == 0) +#define times_match_exact(t1,t2) (memcmp((char *)(t1), (char *)(t2), sizeof(*(t1))) == 0) static krb5_boolean times_match PROTOTYPE((const krb5_ticket_times *, const krb5_ticket_times *)); @@ -147,7 +147,7 @@ authdata_match(mdata, data) while ((mdatap = *mdata) && (datap = *data)) { if ((mdatap->ad_type != datap->ad_type) || (mdatap->length != datap->length) || - (bcmp ((char *)mdatap->contents, + (memcmp ((char *)mdatap->contents, (char *)datap->contents, mdatap->length) != 0)) return FALSE; mdata++;