Actually, revert previous - I doubt it would work with a non-rump kernel.
The filthy #ifdef _MODULE lives to stink another day.
This commit is contained in:
parent
7b9ae626a8
commit
13de128f76
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: putter.c,v 1.17 2008/12/29 17:47:08 pooka Exp $ */
|
||||
/* $NetBSD: putter.c,v 1.18 2008/12/29 17:52:43 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved.
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.17 2008/12/29 17:47:08 pooka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.18 2008/12/29 17:52:43 pooka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -618,6 +618,7 @@ MODULE(MODULE_CLASS_MISC, putter, NULL);
|
||||
static int
|
||||
putter_modcmd(modcmd_t cmd, void *arg)
|
||||
{
|
||||
#ifdef _MODULE
|
||||
int bmajor = -1, cmajor = -1;
|
||||
|
||||
switch (cmd) {
|
||||
@ -629,4 +630,9 @@ putter_modcmd(modcmd_t cmd, void *arg)
|
||||
default:
|
||||
return ENOTTY;
|
||||
}
|
||||
#else
|
||||
if (cmd == MODULE_CMD_INIT)
|
||||
return 0;
|
||||
return ENOTTY;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user