From: Tom Yu Date: Thu, 15 Aug 1996 21:12:33 +0000 (+0000) Subject: * mcc_retrv.c: Add parens to def'n of flags_match because == has X-Git-Tag: krb5-1.0-beta7~140 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d0342b7c6586416238746d11d38b94564d6c357;p=krb5.git * mcc_retrv.c: Add parens to def'n of flags_match because == has higher precedence than &. (noticed by -Wall) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8942 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/ccache/memory/ChangeLog b/src/lib/krb5/ccache/memory/ChangeLog index e200c67e0..5237b5aec 100644 --- a/src/lib/krb5/ccache/memory/ChangeLog +++ b/src/lib/krb5/ccache/memory/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 15 16:48:22 1996 Tom Yu + + * mcc_retrv.c: Add parens to def'n of flags_match because == has + higher precedence than &. (noticed by -Wall) + Tue Jun 11 20:15:01 1996 Ezra Peisach * mcc_close.c (krb5_mcc_close): Remove inclusion of malloc.h diff --git a/src/lib/krb5/ccache/memory/mcc_retrv.c b/src/lib/krb5/ccache/memory/mcc_retrv.c index 582157904..bb07171b4 100644 --- a/src/lib/krb5/ccache/memory/mcc_retrv.c +++ b/src/lib/krb5/ccache/memory/mcc_retrv.c @@ -27,7 +27,7 @@ #include "mcc.h" #define set(bits) (whichfields & bits) -#define flags_match(a,b) (a & b == a) +#define flags_match(a,b) (((a) & (b)) == (a)) #define times_match_exact(t1,t2) (memcmp((char *)(t1), (char *)(t2), sizeof(*(t1))) == 0) static krb5_boolean times_match PROTOTYPE((const krb5_ticket_times *,