diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-11 15:34:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-11 15:34:17 +0000 |
commit | a76a23aaace8cc18e6bbbf33f207cff08a35f3c0 (patch) | |
tree | 23ac520a3eb5682c1d5d05bf6d5060bfc5869e94 /sys | |
parent | 9514b62ef93fe23899069a951f38fcae35a36286 (diff) |
sigh memset is not available everywhere, I should know better
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_kthread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index d9cd931b537..70297f93499 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_kthread.c,v 1.1 1999/01/11 01:37:13 niklas Exp $ */ +/* $OpenBSD: kern_kthread.c,v 1.2 1999/01/11 15:34:16 niklas Exp $ */ /* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */ /*- @@ -166,10 +166,10 @@ kthread_create_deferred(func, arg) { struct kthread_q *kq; - kq = malloc(sizeof(*kq), M_TEMP, M_NOWAIT); + kq = malloc(sizeof *kq, M_TEMP, M_NOWAIT); if (kq == NULL) panic("unable to allocate kthread_q"); - memset(kq, 0, sizeof(*kq)); + bzero(kq, sizeof *kq); kq->kq_func = func; kq->kq_arg = arg; |