svn commit: r271374 - user/ngie/add-pjdfstest/contrib/pjdfstest

Garrett Cooper ngie at FreeBSD.org
Wed Sep 10 10:04:26 UTC 2014


Author: ngie
Date: Wed Sep 10 10:04:25 2014
New Revision: 271374
URL: http://svnweb.freebsd.org/changeset/base/271374

Log:
  Fix compiling pjdfstest with -Wall (-Wsign-compare issue)

Modified:
  user/ngie/add-pjdfstest/contrib/pjdfstest/pjdfstest.c

Modified: user/ngie/add-pjdfstest/contrib/pjdfstest/pjdfstest.c
==============================================================================
--- user/ngie/add-pjdfstest/contrib/pjdfstest/pjdfstest.c	Wed Sep 10 09:57:32 2014	(r271373)
+++ user/ngie/add-pjdfstest/contrib/pjdfstest/pjdfstest.c	Wed Sep 10 10:04:25 2014	(r271374)
@@ -1007,7 +1007,7 @@ set_gids(char *gids)
 	assert(gidset != NULL);
 	for (i = 0, g = strtok(gids, ","); g != NULL;
 	    g = strtok(NULL, ","), i++) {
-		if (i >= ngroups) {
+		if (i >= (int)ngroups) {
 			fprintf(stderr, "too many gids\n");
 			exit(1);
 		}


More information about the svn-src-user mailing list