svn commit: r209342 - head/usr.bin/ypwhich

Gavin Atkinson gavin at FreeBSD.org
Sat Jun 19 16:24:55 UTC 2010


Author: gavin
Date: Sat Jun 19 16:24:55 2010
New Revision: 209342
URL: http://svn.freebsd.org/changeset/base/209342

Log:
  Variable 'getmap' is unused.
  
  Found by:	clang static analyzer

Modified:
  head/usr.bin/ypwhich/ypwhich.c

Modified: head/usr.bin/ypwhich/ypwhich.c
==============================================================================
--- head/usr.bin/ypwhich/ypwhich.c	Sat Jun 19 13:42:14 2010	(r209341)
+++ head/usr.bin/ypwhich/ypwhich.c	Sat Jun 19 16:24:55 2010	(r209342)
@@ -143,11 +143,11 @@ main(int argc, char *argv[])
 	struct ypmaplist *ypml, *y;
 	struct hostent *hent;
 	struct sockaddr_in lsin;
-	int notrans, mode, getmap;
+	int notrans, mode;
 	int c, r;
 	u_int i;
 
-	getmap = notrans = mode = 0;
+	notrans = mode = 0;
 	while ((c = getopt(argc, argv, "xd:mt")) != -1)
 		switch (c) {
 		case 'x':


More information about the svn-src-all mailing list