summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2001-12-22 01:15:58 +0000
committerHerb Lewis <herb@samba.org>2001-12-22 01:15:58 +0000
commit480b5c815864d35196053016b7bbcb2fe7f65ece (patch)
tree3fe249326ca1767226baedb33a5b73ce564c4b94 /source3/nsswitch
parent50d954433086ac43c7ab3bc048d3f53df8af5858 (diff)
downloadsamba-480b5c815864d35196053016b7bbcb2fe7f65ece.tar.gz
samba-480b5c815864d35196053016b7bbcb2fe7f65ece.tar.xz
samba-480b5c815864d35196053016b7bbcb2fe7f65ece.zip
merge Jeremy's gcc3 warning fix from 2.2
(This used to be commit 52e9d2c383371e64e498bbdb4a3f0e8583ca77a0)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbind_nss.c2
1 files changed, 1 insertions, 1 deletions
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) *