Sort includes and remove bogus typedef of modeventhand_t, since this
isn't used in the example any more. Pointed out by: bde
This commit is contained in:
parent
d93a3958e5
commit
aee5cabec4
@ -63,8 +63,8 @@ contains the value of
|
||||
.Sh EXAMPLES
|
||||
.Bd -literal
|
||||
#include <sys/param.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/module.h>
|
||||
|
||||
static int foo_handler(module_t mod, int /*modeventtype_t*/ what,
|
||||
void *arg);
|
||||
@ -79,10 +79,6 @@ MODULE_VERSION(foo, 1);
|
||||
MODULE_DEPEND(foo, bar, 1, 3, 4);
|
||||
|
||||
DECLARE_MODULE(foo, mod_data, SI_SUB_EXEC, SI_ORDER_ANY);
|
||||
|
||||
/* from module.h: */
|
||||
typedef int (*modeventhand_t)(module_t mod, int /*modeventtype_t*/ what,
|
||||
void *arg);
|
||||
.Ed
|
||||
.Sh SEE ALSO
|
||||
.Xr DEV_MODULE 9 ,
|
||||
|
Loading…
Reference in New Issue
Block a user