summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-01-26 16:18:53 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-01-26 16:18:53 +0000
commit042268021feed772572580e119aac2a69754c487 (patch)
tree1bf2521942d9915e8f73e3accf1a239ce1a70c75 /sys
parent2a2aaffde13d0d76549106655a6facab4520baeb (diff)
Use memset() instead of bzero().
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_witness.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 2a64c7f28f7..739e96a0ece 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_witness.c,v 1.23 2019/01/26 11:47:41 visa Exp $ */
+/* $OpenBSD: subr_witness.c,v 1.24 2019/01/26 16:18:52 visa Exp $ */
/*-
* Copyright (c) 2008 Isilon Systems, Inc.
@@ -1750,7 +1750,7 @@ witness_get(void)
index = w->w_index;
KASSERT(index > 0 && index == w_max_used_index + 1 &&
index < witness_count);
- bzero(w, sizeof(*w));
+ memset(w, 0, sizeof(*w));
w->w_index = index;
if (index > w_max_used_index)
w_max_used_index = index;
@@ -1796,7 +1796,7 @@ witness_lock_list_get(void)
}
w_lock_list_free = lle->ll_next;
mtx_leave(&w_mtx);
- bzero(lle, sizeof(*lle));
+ memset(lle, 0, sizeof(*lle));
return (lle);
}