aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 13:39:41 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2019-10-25 13:39:41 +0200
commite076162897638a9b4952a77bf9cd7d24b2a296be (patch)
treea1b8745754b77e1f8d42b230ea3658a6b7ce9490
parente5897d041d704a40efc8480cb2a72ef6843d0642 (diff)
downloadbusybox-e076162897638a9b4952a77bf9cd7d24b2a296be.tar.gz
traceroute: fix gcc-ism
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/traceroute.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 0435d6ba6..06d3f19da 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -546,11 +546,11 @@ pr_type(unsigned char t)
};
# if ENABLE_TRACEROUTE6
static const char *const ttab6[] = {
-[0] "Error", "Dest Unreachable", "Packet Too Big", "Time Exceeded",
-[4] "Param Problem",
-[8] "Echo Request", "Echo Reply", "Membership Query", "Membership Report",
-[12] "Membership Reduction", "Router Solicit", "Router Advert", "Neighbor Solicit",
-[16] "Neighbor Advert", "Redirect",
+[0] = "Error", "Dest Unreachable", "Packet Too Big", "Time Exceeded",
+[4] = "Param Problem",
+[8] = "Echo Request", "Echo Reply", "Membership Query", "Membership Report",
+[12] = "Membership Reduction", "Router Solicit", "Router Advert", "Neighbor Solicit",
+[16] = "Neighbor Advert", "Redirect",
};
if (dest_lsa->u.sa.sa_family == AF_INET6) {