summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2015-10-17 13:07:03 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2015-10-17 13:07:03 +0000
commit00f2b55b97bdaaed5404101c6316d519bb5059dd (patch)
tree1383ffdb8defabeee3c77f3967f76f2ce28e967e /sbin
parent746e1d468750f51e57d7a8715e8a436372904688 (diff)
move -V option before -v and remove one spurious newline, now in sync
with ping. No object change.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping6/ping6.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index f000892c3dc..0763b033e7e 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.125 2015/10/16 22:47:12 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.126 2015/10/17 13:07:02 florian Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -355,12 +355,8 @@ main(int argc, char *argv[])
errx(1, "datalen value is %s: %s", errstr,
optarg);
break;
- case 'v':
- options |= F_VERBOSE;
- break;
case 'V':
- rtableid = strtonum(optarg, 0, RT_TABLEID_MAX,
- &errstr);
+ rtableid = strtonum(optarg, 0, RT_TABLEID_MAX, &errstr);
if (errstr)
errx(1, "rtable value is %s: %s", errstr,
optarg);
@@ -368,6 +364,9 @@ main(int argc, char *argv[])
sizeof(rtableid)) == -1)
err(1, "setsockopt SO_RTABLE");
break;
+ case 'v':
+ options |= F_VERBOSE;
+ break;
default:
usage();
/*NOTREACHED*/