svn commit: r290583 - stable/9/lib/libc/gen

Garrett Cooper ngie at FreeBSD.org
Mon Nov 9 07:36:56 UTC 2015


Author: ngie
Date: Mon Nov  9 07:36:55 2015
New Revision: 290583
URL: https://svnweb.freebsd.org/changeset/base/290583

Log:
  MFstable/10 r290582:
  
  MFC r290179:
  
  Remove a set but unused variable in __getgroupmembership to fix a gcc 4.9+ warning
  
  Sponsored by: EMC / Isilon Storage Division

Modified:
  stable/9/lib/libc/gen/getgrent.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/lib/   (props changed)
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/gen/getgrent.c
==============================================================================
--- stable/9/lib/libc/gen/getgrent.c	Mon Nov  9 07:34:30 2015	(r290582)
+++ stable/9/lib/libc/gen/getgrent.c	Mon Nov  9 07:36:55 2015	(r290583)
@@ -659,14 +659,13 @@ __getgroupmembership(const char *uname, 
 		NS_FALLBACK_CB(getgroupmembership_fallback)
 		{ NULL, NULL, NULL }
 	};
-	int rv;
 
 	assert(uname != NULL);
 	/* groups may be NULL if just sizing when invoked with maxgrp = 0 */
 	assert(grpcnt != NULL);
 
 	*grpcnt = 0;
-	rv = _nsdispatch(NULL, dtab, NSDB_GROUP, "getgroupmembership",
+	(void)_nsdispatch(NULL, dtab, NSDB_GROUP, "getgroupmembership",
 	    defaultsrc, uname, agroup, groups, maxgrp, grpcnt);
 
 	/* too many groups found? */


More information about the svn-src-stable-9 mailing list