svn commit: r319030 - head/lib/libc/tests/nss
Ngie Cooper
ngie at FreeBSD.org
Sun May 28 03:47:59 UTC 2017
Author: ngie
Date: Sun May 28 03:47:58 2017
New Revision: 319030
URL: https://svnweb.freebsd.org/changeset/base/319030
Log:
Fix -Wsign-compare warnings
MFC after: 3 days
Sponsored by: Dell EMC Isilon
Modified:
head/lib/libc/tests/nss/getgr_test.c
Modified: head/lib/libc/tests/nss/getgr_test.c
==============================================================================
--- head/lib/libc/tests/nss/getgr_test.c Sun May 28 03:42:49 2017 (r319029)
+++ head/lib/libc/tests/nss/getgr_test.c Sun May 28 03:47:58 2017 (r319030)
@@ -177,7 +177,7 @@ sdump_group(struct group *grp, char *buf
written = snprintf(buffer, buflen, "%s:%s:%d:",
grp->gr_name, grp->gr_passwd, grp->gr_gid);
buffer += written;
- if (written > buflen)
+ if (written > (int)buflen)
return;
buflen -= written;
@@ -187,7 +187,7 @@ sdump_group(struct group *grp, char *buf
written = snprintf(buffer, buflen, "%s%s",
cp == grp->gr_mem ? "" : ",", *cp);
buffer += written;
- if (written > buflen)
+ if (written > (int)buflen)
return;
buflen -= written;
More information about the svn-src-head
mailing list