diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2015-07-16 22:47:47 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2015-07-16 22:47:47 +0000 |
commit | a25fcb2aff6480e316cc9267e867f5a98c1948ac (patch) | |
tree | 6e9f5d242a04b60f4ee600c1f125b38d6ce7395d /usr.sbin/traceroute | |
parent | 07b7557cf3aade60070647a3b2ea124e6d71f5c6 (diff) |
The return type of memset(3) is void. No need for a cast.
No object change.
Diffstat (limited to 'usr.sbin/traceroute')
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index 97c0bf52f7e..1418ff0a069 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute.c,v 1.139 2015/03/11 04:05:18 dlg Exp $ */ +/* $OpenBSD: traceroute.c,v 1.140 2015/07/16 22:47:46 florian Exp $ */ /* $NetBSD: traceroute.c,v 1.10 1995/05/21 15:50:45 mycroft Exp $ */ /* @@ -588,8 +588,8 @@ main(int argc, char *argv[]) (tmprnd & 0x7ff); usec_perturb = arc4random(); - (void) memset(&to4, 0, sizeof(to4)); - (void) memset(&to6, 0, sizeof(to6)); + memset(&to4, 0, sizeof(to4)); + memset(&to6, 0, sizeof(to6)); if (inet_aton(*argv, &to4.sin_addr) != 0) { hostname = *argv; @@ -710,7 +710,7 @@ main(int argc, char *argv[]) err(6, "IP_HDRINCL"); if (source) { - (void) memset(&from4, 0, sizeof(from4)); + memset(&from4, 0, sizeof(from4)); from4.sin_family = AF_INET; if (inet_aton(source, &from4.sin_addr) == 0) errx(1, "unknown host %s", source); |