Date: Sat, 19 Jun 2010 16:24:55 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r209342 - head/usr.bin/ypwhich Message-ID: <201006191624.o5JGOtX1032504@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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':
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006191624.o5JGOtX1032504>