From a9ef8bf7407ae4341e21d397ba353bcd791b0628 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 15 Nov 1998 15:25:56 +0000 Subject: [PATCH] Don't generate module event handlers of the wrong (old) type. Fixed some pedantic syntax errors (an extra semicolon in each SYSUNINIT() expansion). --- sys/sys/kernel.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 2ff321b73489..5c9ce8281aa7 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)kernel.h 8.3 (Berkeley) 1/21/94 - * $Id: kernel.h,v 1.43 1998/10/16 03:55:01 peter Exp $ + * $Id: kernel.h,v 1.44 1998/11/10 08:41:41 peter Exp $ */ #ifndef _SYS_KERNEL_H_ @@ -258,7 +258,7 @@ struct sysinit { ident, \ SI_TYPE_DEFAULT \ }; \ - DATA_SET(sysuninit_set,uniquifier ## _sys_uninit); + DATA_SET(sysuninit_set,uniquifier ## _sys_uninit) /* * Call 'fork()' before calling '(*func)(ident)'; @@ -326,8 +326,7 @@ void sysinit_add __P((struct sysinit **set)); */ #include #define PSEUDO_SET(sym, name) \ - static int name ## _modevent(module_t mod, modeventtype_t type, \ - void *data) \ + static int name ## _modevent(module_t mod, int type, void *data) \ { \ void (*initfunc)(void *) = (void (*)(void *))data; \ switch (type) { \