From 480b5c815864d35196053016b7bbcb2fe7f65ece Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Sat, 22 Dec 2001 01:15:58 +0000 Subject: merge Jeremy's gcc3 warning fix from 2.2 (This used to be commit 52e9d2c383371e64e498bbdb4a3f0e8583ca77a0) --- source3/nsswitch/winbind_nss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbind_nss.c b/source3/nsswitch/winbind_nss.c index 0c4a61d2cb..4579d167d2 100644 --- a/source3/nsswitch/winbind_nss.c +++ b/source3/nsswitch/winbind_nss.c @@ -696,7 +696,7 @@ static int fill_grent(struct group *result, struct winbindd_gr *gr, /* this next value is a pointer to a pointer so let's align it */ /* Calculate number of extra bytes needed to align on pointer size boundry */ - if (i = (int)*buffer % sizeof(char*)) + if ((i = (int)*buffer % sizeof(char*)) != 0) i = sizeof(char*) - i; if ((tst = get_static(buffer, buflen, ((gr->num_gr_mem + 1) * -- cgit