summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd/control.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-24 17:47:58 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-24 17:47:58 +0000
commit4786a6bbe424bd70c070ca2f37c67c811ff947c1 (patch)
tree24296cb4c70ca2166e3d8c71bafb72a8bd55d4db /usr.sbin/ldapd/control.c
parent4d3b347fb84e3d8fb580a216bdfe9066719e9bd0 (diff)
bzero -> memset. No binary change.
Diffstat (limited to 'usr.sbin/ldapd/control.c')
-rw-r--r--usr.sbin/ldapd/control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldapd/control.c b/usr.sbin/ldapd/control.c
index 61a721a81f1..545fde6a08e 100644
--- a/usr.sbin/ldapd/control.c
+++ b/usr.sbin/ldapd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.11 2015/11/02 06:32:51 jmatthew Exp $ */
+/* $OpenBSD: control.c,v 1.12 2015/12/24 17:47:57 mmcc Exp $ */
/*
* Copyright (c) 2010 Martin Hedenfalk <martin@bzero.se>
@@ -58,7 +58,7 @@ control_init(struct control_sock *cs)
if ((fd = socket(AF_UNIX, SOCK_STREAM | SOCK_NONBLOCK, 0)) == -1)
fatal("control_init: socket");
- bzero(&sun, sizeof(sun));
+ memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_UNIX;
if (strlcpy(sun.sun_path, cs->cs_name,
sizeof(sun.sun_path)) >= sizeof(sun.sun_path))
@@ -207,7 +207,7 @@ send_stats(struct imsgev *iev)
TAILQ_FOREACH(ns, &conf->namespaces, next) {
if (namespace_has_referrals(ns))
continue;
- bzero(&nss, sizeof(nss));
+ memset(&nss, 0, sizeof(nss));
strlcpy(nss.suffix, ns->suffix, sizeof(nss.suffix));
if ((st = btree_stat(ns->data_db)) != NULL)
bcopy(st, &nss.data_stat, sizeof(nss.data_stat));