diff options
author | peter <peter@FreeBSD.org> | 1999-09-03 19:21:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-09-03 19:21:49 +0000 |
commit | 41539b04ea6d4e9c7b07a6c78582515908449deb (patch) | |
tree | 3a2214317652e63d92c42d31b95add75d2ecbafd /sys/kern | |
parent | f1d6c34fbb31ab0d15383ed2479ecc6bbaffcf03 (diff) | |
download | FreeBSD-src-41539b04ea6d4e9c7b07a6c78582515908449deb.zip FreeBSD-src-41539b04ea6d4e9c7b07a6c78582515908449deb.tar.gz |
Fix a warning for the !DEVFS case.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/subr_diskslice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c index df187ef..49e86f6 100644 --- a/sys/kern/subr_diskslice.c +++ b/sys/kern/subr_diskslice.c @@ -89,7 +89,9 @@ static void set_ds_bad __P((struct diskslices *ssp, int slice, static void set_ds_label __P((struct diskslices *ssp, int slice, struct disklabel *lp)); static void set_ds_labeldevs __P((dev_t dev, struct diskslices *ssp)); +#ifdef DEVFS static void set_ds_labeldevs_unaliased __P((dev_t dev, struct diskslices *ssp)); +#endif static void set_ds_wlabel __P((struct diskslices *ssp, int slice, int wlabel)); @@ -1111,12 +1113,12 @@ set_ds_labeldevs(dev, ssp) #endif /* DEVFS */ } +#ifdef DEVFS static void set_ds_labeldevs_unaliased(dev, ssp) dev_t dev; struct diskslices *ssp; { -#ifdef DEVFS struct disklabel *lp; int mynor; int part; @@ -1155,8 +1157,8 @@ set_ds_labeldevs_unaliased(dev, ssp) "r%s%s", sname, partname); } } -#endif /* DEVFS */ } +#endif /* DEVFS */ static void set_ds_wlabel(ssp, slice, wlabel) |