diff options
author | mckusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2011-06-16 23:40:10 +0000 |
commit | d97a856c1b00506155b0903bddbe6e5f4e1aa40c (patch) | |
tree | 5b6a6beeb214e52a52f55daa48f58b4361d826a5 /usr.sbin/makefs/ffs | |
parent | 7c77d46862292246da557642ef825ee64441c4d7 (diff) | |
download | FreeBSD-src-d97a856c1b00506155b0903bddbe6e5f4e1aa40c.zip FreeBSD-src-d97a856c1b00506155b0903bddbe6e5f4e1aa40c.tar.gz |
Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.c
and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that
file. No other programs or libraries include <ufs/ffs/ffs_extern.h> (nor
should they as it is totally in-kernel interfaces). For added protection
I enclosed the entire contents of <ufs/ffs/ffs_extern.h> in ifdef _KERNEL.
Feedback from: Bruce Evans and Tai-hwa Liang
Diffstat (limited to 'usr.sbin/makefs/ffs')
-rw-r--r-- | usr.sbin/makefs/ffs/ffs_bswap.c | 8 | ||||
-rw-r--r-- | usr.sbin/makefs/ffs/ffs_subr.c | 9 |
2 files changed, 1 insertions, 16 deletions
diff --git a/usr.sbin/makefs/ffs/ffs_bswap.c b/usr.sbin/makefs/ffs/ffs_bswap.c index 18ace03..a1a1c46 100644 --- a/usr.sbin/makefs/ffs/ffs_bswap.c +++ b/usr.sbin/makefs/ffs/ffs_bswap.c @@ -41,14 +41,6 @@ __FBSDID("$FreeBSD$"); #include <ufs/ufs/dinode.h> #include "ffs/ufs_bswap.h" #include <ufs/ffs/fs.h> -/* XXX temporary */ -struct ufsmount; -struct bufobj; -struct mount; -struct vnode; -typedef int vfs_vget_t(struct mount *mp, ino_t ino, int flags, - struct vnode **vpp); -#include <ufs/ffs/ffs_extern.h> #if !defined(_KERNEL) #include <stddef.h> diff --git a/usr.sbin/makefs/ffs/ffs_subr.c b/usr.sbin/makefs/ffs/ffs_subr.c index 5f9b6f2..b857a58 100644 --- a/usr.sbin/makefs/ffs/ffs_subr.c +++ b/usr.sbin/makefs/ffs/ffs_subr.c @@ -38,15 +38,8 @@ __FBSDID("$FreeBSD$"); #include <ufs/ufs/dinode.h> #include <ufs/ffs/fs.h> -/* XXX temporary */ -struct ufsmount; -struct bufobj; -struct mount; -struct vnode; -typedef int vfs_vget_t(struct mount *mp, ino_t ino, int flags, - struct vnode **vpp); -#include <ufs/ffs/ffs_extern.h> #include "ffs/ufs_bswap.h" + void panic __P((const char *, ...)) __attribute__((__noreturn__,__format__(__printf__,1,2))); |