diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2014-04-23 09:20:16 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2014-04-23 09:20:16 +0000 |
commit | f0d72459e3a0b02577759e267cc41db75f69d414 (patch) | |
tree | ae0dabdc594619a6d15dba1a221d4e83466eb7e7 | |
parent | f29382b156da72f334e42726d45163c0a0f5342d (diff) |
bzero -> memset
OK benno@
-rw-r--r-- | usr.sbin/traceroute6/traceroute6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index e45646db993..5e8ca7765bb 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traceroute6.c,v 1.95 2014/04/23 09:19:23 florian Exp $ */ +/* $OpenBSD: traceroute6.c,v 1.96 2014/04/23 09:20:15 florian Exp $ */ /* $KAME: traceroute6.c,v 1.63 2002/10/24 12:53:25 itojun Exp $ */ /* @@ -566,7 +566,7 @@ main(int argc, char *argv[]) /* * Source selection */ - bzero(&from6, sizeof(from6)); + memset(&from6, 0, sizeof(from6)); if (source) { memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_INET6; @@ -647,7 +647,7 @@ main(int argc, char *argv[]) int got_there = 0, unreachable = 0, timeout = 0, loss; printf("%2u ", hops); - bzero(&lastaddr6, sizeof(lastaddr6)); + memset(&lastaddr6, 0, sizeof(lastaddr6)); for (probe = 0, loss = 0; probe < nprobes; ++probe) { int cc; struct timeval t1, t2; |