missing break; not reachable
authorflorian <florian@openbsd.org>
Wed, 23 Apr 2014 09:17:10 +0000 (09:17 +0000)
committerflorian <florian@openbsd.org>
Wed, 23 Apr 2014 09:17:10 +0000 (09:17 +0000)
OK benno@

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

index 61da6f3..0156797 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: traceroute.c,v 1.122 2014/04/23 09:16:11 florian Exp $        */
+/*     $OpenBSD: traceroute.c,v 1.123 2014/04/23 09:20:59 florian Exp $        */
 /*     $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $  */
 
 /*-
@@ -958,6 +958,7 @@ send_probe(int seq, u_int8_t ttl, int iflag, struct sockaddr *to)
                        break;
                default:
                        errx(1, "unsupported AF: %d", to->sa_family);
+                       break;
        }
 
        if (dump)
index 3ff95c2..a672f6a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: traceroute6.c,v 1.92 2014/04/23 09:16:11 florian Exp $        */
+/*     $OpenBSD: traceroute6.c,v 1.93 2014/04/23 09:17:10 florian Exp $        */
 /*     $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $    */
 
 /*
@@ -754,6 +754,7 @@ send_probe(int seq, u_int8_t hops, int iflag, struct sockaddr *to)
                        break;
                default:
                        errx(1, "unsupported AF: %d", to->sa_family);
+                       break;
        }
 
        if (dump)