KNF
authorflorian <florian@openbsd.org>
Wed, 23 Apr 2014 09:22:34 +0000 (09:22 +0000)
committerflorian <florian@openbsd.org>
Wed, 23 Apr 2014 09:22:34 +0000 (09:22 +0000)
OK benno@

usr.sbin/traceroute/traceroute.c
usr.sbin/traceroute6/traceroute6.c

index 378c346..49b9822 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: traceroute.c,v 1.124 2014/04/23 09:21:41 florian Exp $        */
+/*     $OpenBSD: traceroute.c,v 1.125 2014/04/23 09:22:34 florian Exp $        */
 /*     $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $  */
 
 /*-
@@ -527,7 +527,7 @@ main(int argc, char *argv[])
        if ((error = getaddrinfo(dest, NULL, &hints, &res)))
                errx(1, "%s", gai_strerror(error));
 
-       switch(res->ai_family) {
+       switch (res->ai_family) {
        case AF_INET:
                if (res->ai_addrlen != sizeof(to4))
                    errx(1, "size of sockaddr mismatch");
@@ -566,7 +566,7 @@ main(int argc, char *argv[])
                datalen = (int)l;
        }
 
-       switch(to->sa_family) {
+       switch (to->sa_family) {
        case AF_INET:
                switch (proto) {
                case IPPROTO_UDP:
@@ -974,12 +974,12 @@ send_probe(int seq, u_int8_t ttl, int iflag, struct sockaddr *to)
        int i;
 
        switch (to->sa_family) {
-               case AF_INET:
-                       build_probe4(seq, ttl, iflag);
-                       break;
-               default:
-                       errx(1, "unsupported AF: %d", to->sa_family);
-                       break;
+       case AF_INET:
+               build_probe4(seq, ttl, iflag);
+               break;
+       default:
+               errx(1, "unsupported AF: %d", to->sa_family);
+               break;
        }
 
        if (dump)
index 5e8ca77..724464f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: traceroute6.c,v 1.96 2014/04/23 09:20:15 florian Exp $        */
+/*     $OpenBSD: traceroute6.c,v 1.97 2014/04/23 09:22:34 florian Exp $        */
 /*     $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $    */
 
 /*
@@ -490,7 +490,7 @@ main(int argc, char *argv[])
        if ((error = getaddrinfo(*argv, NULL, &hints, &res)))
                errx(1, "%s", gai_strerror(error));
 
-       switch(res->ai_family) {
+       switch (res->ai_family) {
        case AF_INET6:
                if (res->ai_addrlen != sizeof(to6))
                        errx(1, "size of sockaddr mismatch");
@@ -525,7 +525,7 @@ main(int argc, char *argv[])
                datalen = (int)l;
        }
 
-       switch(to->sa_family) {
+       switch (to->sa_family) {
        case AF_INET6:
                if (useicmp)
                        minlen = ICMP6ECHOLEN + sizeof(struct packetdata);
@@ -774,12 +774,12 @@ send_probe(int seq, u_int8_t hops, int iflag, struct sockaddr *to)
        int i;
 
        switch (to->sa_family) {
-               case AF_INET6:
-                       build_probe6(seq, hops, iflag, to);
-                       break;
-               default:
-                       errx(1, "unsupported AF: %d", to->sa_family);
-                       break;
+       case AF_INET6:
+               build_probe6(seq, hops, iflag, to);
+               break;
+       default:
+               errx(1, "unsupported AF: %d", to->sa_family);
+               break;
        }
 
        if (dump)