From ae7f9676e7604619d8ab2e2cc25f49e4c5cc1c5f Mon Sep 17 00:00:00 2001 From: Gavin Atkinson Date: Sat, 19 Jun 2010 16:24:55 +0000 Subject: [PATCH] Variable 'getmap' is unused. Found by: clang static analyzer --- usr.bin/ypwhich/ypwhich.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index 4e719dffcd0e..b31dcae2cb6c 100644 --- a/usr.bin/ypwhich/ypwhich.c +++ b/usr.bin/ypwhich/ypwhich.c @@ -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':