diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2015-07-18 00:53:45 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2015-07-18 00:53:45 +0000 |
commit | 4e16cec4ac0b41dca83ab6fbf9235b2d191644fb (patch) | |
tree | f57d1b7224e1895c7ff921db19ad94f194ca3792 /usr.sbin/ntpd/client.c | |
parent | ee513819ba455ade9257a93a7a363b149580ec5d (diff) |
replace bzero with memset
ok phessler@ deraadt@
Diffstat (limited to 'usr.sbin/ntpd/client.c')
-rw-r--r-- | usr.sbin/ntpd/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 09681db23dc..93e69eadb26 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.101 2015/03/28 03:49:01 bcook Exp $ */ +/* $OpenBSD: client.c,v 1.102 2015/07/18 00:53:44 bcook Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -215,7 +215,7 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) double T1, T2, T3, T4; time_t interval; - bzero(&somsg, sizeof(somsg)); + memset(&somsg, 0, sizeof(somsg)); iov[0].iov_base = buf; iov[0].iov_len = sizeof(buf); somsg.msg_iov = iov; |