diff options
| author | 2014-01-21 01:48:44 +0000 | |
|---|---|---|
| committer | 2014-01-21 01:48:44 +0000 | |
| commit | 91ba896db697da68a85cad0ccf0e596c2e766af5 (patch) | |
| tree | 239fb63a3973e6123aad5b4c47ed9a2cc65139b8 /sys/kern/kern_lock.c | |
| parent | naughty guenther didn't compile (diff) | |
| download | wireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.tar.xz wireguard-openbsd-91ba896db697da68a85cad0ccf0e596c2e766af5.zip | |
bzero -> memset
Diffstat (limited to 'sys/kern/kern_lock.c')
| -rw-r--r-- | sys/kern/kern_lock.c | 4 |
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); } |
