move -V option before -v and remove one spurious newline, now in sync
authorflorian <florian@openbsd.org>
Sat, 17 Oct 2015 13:07:02 +0000 (13:07 +0000)
committerflorian <florian@openbsd.org>
Sat, 17 Oct 2015 13:07:02 +0000 (13:07 +0000)
with ping.
No object change.

sbin/ping6/ping6.c

index f000892..0763b03 100644 (file)
@@ -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*/