From: florian Date: Wed, 23 Apr 2014 09:22:34 +0000 (+0000) Subject: KNF X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0fa3f83466d171d1d5747f1fc5824f9757c6afe2;p=openbsd KNF OK benno@ --- diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 378c3460af5..49b98220533 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -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) diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index 5e8ca7765bb..724464fb72b 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -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)