diff options
Diffstat (limited to 'kern/lock.c')
-rw-r--r-- | kern/lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/lock.c b/kern/lock.c index 15bc988..ba0f0c2 100644 --- a/kern/lock.c +++ b/kern/lock.c @@ -34,6 +34,8 @@ * Locking primitives implementation */ +#include <string.h> + #include <kern/lock.h> #include <kern/thread.h> #include <kern/sched_prim.h> @@ -219,7 +221,7 @@ void lock_init( lock_t l, boolean_t can_sleep) { - bzero((char *)l, sizeof(lock_data_t)); + memset(l, 0, sizeof(lock_data_t)); simple_lock_init(&l->interlock); l->want_write = FALSE; l->want_upgrade = FALSE; |