From a76a23aaace8cc18e6bbbf33f207cff08a35f3c0 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Mon, 11 Jan 1999 15:34:17 +0000 Subject: sigh memset is not available everywhere, I should know better --- sys/kern/kern_kthread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3