summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/parse.y
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-07-18 00:53:45 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-07-18 00:53:45 +0000
commit4e16cec4ac0b41dca83ab6fbf9235b2d191644fb (patch)
treef57d1b7224e1895c7ff921db19ad94f194ca3792 /usr.sbin/ntpd/parse.y
parentee513819ba455ade9257a93a7a363b149580ec5d (diff)
replace bzero with memset
ok phessler@ deraadt@
Diffstat (limited to 'usr.sbin/ntpd/parse.y')
-rw-r--r--usr.sbin/ntpd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index 1295c7c9611..52852f77d12 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.62 2015/05/17 18:31:32 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.63 2015/07/18 00:53:44 bcook Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -426,7 +426,7 @@ rtable : RTABLE NUMBER {
void
opts_default(void)
{
- bzero(&opts, sizeof opts);
+ memset(&opts, 0, sizeof opts);
opts.weight = 1;
opts.rtable = -1;
opts.stratum = 1;