summaryrefslogtreecommitdiffstats
path: root/sys/fs/devfs/devfs_rule.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-15 21:43:08 +0000
committerphk <phk@FreeBSD.org>2004-02-15 21:43:08 +0000
commit758f11d12733b14451a5b9a622a672c71fd3fc73 (patch)
tree77745dcce8e3b03ba96ef09918c6263dbd8250a2 /sys/fs/devfs/devfs_rule.c
parent900024a6aaa99e39cc2ada236b0e0d5cb71d2738 (diff)
downloadFreeBSD-src-758f11d12733b14451a5b9a622a672c71fd3fc73.zip
FreeBSD-src-758f11d12733b14451a5b9a622a672c71fd3fc73.tar.gz
White-space align a struct definition.
Move a SYSINIT to the file where it belongs.
Diffstat (limited to 'sys/fs/devfs/devfs_rule.c')
-rw-r--r--sys/fs/devfs/devfs_rule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/devfs/devfs_rule.c b/sys/fs/devfs/devfs_rule.c
index 16b4022..366fd84 100644
--- a/sys/fs/devfs/devfs_rule.c
+++ b/sys/fs/devfs/devfs_rule.c
@@ -146,8 +146,8 @@ devfs_rules_apply(struct devfs_mount *dm, struct devfs_dirent *de)
/*
* Rule subsystem SYSINIT hook.
*/
-void
-devfs_rules_init(void)
+static void
+devfs_rules_init(void *junk __unused)
{
struct devfs_ruleset *ds;
@@ -158,6 +158,8 @@ devfs_rules_init(void)
ds->ds_refcount = 1; /* Prevent reaping. */
}
+SYSINIT(devfs_rules, SI_SUB_DEVFS, SI_ORDER_FIRST, devfs_rules_init, NULL);
+
/*
* Rule subsystem ioctl hook.
*/
OpenPOWER on IntegriCloud