summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-11-16 00:32:53 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-11-16 00:32:53 +0000
commit687bfbb58cc9ead433b7632f5b23b2dd36bb2ac7 (patch)
tree8d5e1f8bc0c2d272a50badb99556234f860f5474
parentee995518275123744fd4da9512b09488a8e77c0f (diff)
Remove "(void)" casts from the 2 printf() statements that
had them. ok bluhm@
-rw-r--r--sbin/route/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 23633a15b24..302b0ed65c1 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.236 2019/11/09 17:14:00 florian Exp $ */
+/* $OpenBSD: route.c,v 1.237 2019/11/16 00:32:52 krw Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -1227,7 +1227,7 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen)
break;
case RTM_IFINFO:
ifm = (struct if_msghdr *)rtm;
- (void) printf(", if# %d, ", ifm->ifm_index);
+ printf(", if# %d, ", ifm->ifm_index);
if (if_indextoname(ifm->ifm_index, ifname) != NULL)
printf("name %s, ", ifname);
printf("link: %s, mtu: %u, flags:",
@@ -1248,7 +1248,7 @@ print_rtmsg(struct rt_msghdr *rtm, int msglen)
case RTM_DELADDR:
case RTM_CHGADDRATTR:
ifam = (struct ifa_msghdr *)rtm;
- (void) printf(", if# %d, ", ifam->ifam_index);
+ printf(", if# %d, ", ifam->ifam_index);
if (if_indextoname(ifam->ifam_index, ifname) != NULL)
printf("name %s, ", ifname);
printf("metric %d, flags:", ifam->ifam_metric);