summaryrefslogtreecommitdiffstats
path: root/usr.bin/ypwhich/ypwhich.c
diff options
context:
space:
mode:
authorgavin <gavin@FreeBSD.org>2010-06-19 16:24:55 +0000
committergavin <gavin@FreeBSD.org>2010-06-19 16:24:55 +0000
commite18177bbde40122814360e67ce2d75035b2f7a3d (patch)
tree3c433204fbc4becda69466fd81c3dc2499a25ec6 /usr.bin/ypwhich/ypwhich.c
parent86d0f9df6cdc1876cb8746b92eb563ccace93486 (diff)
downloadFreeBSD-src-e18177bbde40122814360e67ce2d75035b2f7a3d.zip
FreeBSD-src-e18177bbde40122814360e67ce2d75035b2f7a3d.tar.gz
Variable 'getmap' is unused.
Found by: clang static analyzer
Diffstat (limited to 'usr.bin/ypwhich/ypwhich.c')
-rw-r--r--usr.bin/ypwhich/ypwhich.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c
index 4e719df..b31dcae 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':
OpenPOWER on IntegriCloud