summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index c87cb9a3a51..cef4c7c7664 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.42 2013/05/06 16:37:55 tedu Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.43 2014/01/21 01:48:44 tedu Exp $ */
/*
* Copyright (c) 1995
@@ -54,7 +54,7 @@ lockinit(struct lock *lkp, int prio, char *wmesg, int timo, int flags)
{
KASSERT(flags == 0);
- bzero(lkp, sizeof(struct lock));
+ memset(lkp, 0, sizeof(struct lock));
rrw_init(&lkp->lk_lck, wmesg);
}