CTASSERT kcondvar size

This commit is contained in:
pooka 2008-12-19 09:50:04 +00:00
parent cf6dee5091
commit e222420f88
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locks.c,v 1.24 2008/12/19 09:33:40 pooka Exp $ */
/* $NetBSD: locks.c,v 1.25 2008/12/19 09:50:04 pooka Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.24 2008/12/19 09:33:40 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.25 2008/12/19 09:50:04 pooka Exp $");
#include <sys/param.h>
#include <sys/mutex.h>
@ -218,6 +218,8 @@ void
cv_init(kcondvar_t *cv, const char *msg)
{
CTASSERT(sizeof(kcondvar_t) >= sizeof(void *));
rumpuser_cv_init((struct rumpuser_cv **)cv);
}