From 82c1afdaa1e8eef12f3ed9b548daa1fcf118f4cd Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 1 May 1996 02:16:17 +0000 Subject: Removed bogus _BEGIN_DECLS/_END_DECLS. Removed unused struct tag declarations in cloned code. Added or cleaned up idempotency ifdefs. --- sys/gnu/ext2fs/ext2_extern.h | 27 ++++++++++----------------- sys/gnu/fs/ext2fs/ext2_extern.h | 27 ++++++++++----------------- 2 files changed, 20 insertions(+), 34 deletions(-) (limited to 'sys/gnu') diff --git a/sys/gnu/ext2fs/ext2_extern.h b/sys/gnu/ext2fs/ext2_extern.h index 9b0ce98..f07b7b7 100644 --- a/sys/gnu/ext2fs/ext2_extern.h +++ b/sys/gnu/ext2fs/ext2_extern.h @@ -39,24 +39,15 @@ * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94 */ -struct buf; -struct fid; -struct fs; +#ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_ +#define _SYS_GNU_EXT2FS_EXT2_EXTERN_H_ + +struct dinode; +struct ext2_inode; struct inode; struct mount; -struct nameidata; -struct proc; -struct statfs; -struct timeval; -struct ucred; -struct uio; struct vnode; -struct mbuf; -struct dinode; -struct ext2_group_desc; -struct ext2_inode; -__BEGIN_DECLS int ext2_alloc __P((struct inode *, daddr_t, daddr_t, int, struct ucred *, daddr_t *)); int ext2_balloc __P((struct inode *, @@ -105,16 +96,18 @@ void mark_buffer_dirty __P((struct buf *bh)); int bwrite(); /* FFS needs a bwrite routine. XXX */ #endif -/* this macros allows some of the ufs code to distinguish between - * an EXT2 and a non-ext2(FFS/LFS) vnode. +/* + * This macro allows the ufs code to distinguish between an EXT2 and a + * non-ext2(FFS/LFS) vnode. */ #define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS) #ifdef DIAGNOSTIC void ext2_checkoverlap __P((struct buf *, struct inode *)); #endif -__END_DECLS extern vop_t **ext2_vnodeop_p; extern vop_t **ext2_specop_p; extern vop_t **ext2_fifoop_p; + +#endif /* !_SYS_GNU_EXT2FS_EXT2_EXTERN_H_ */ diff --git a/sys/gnu/fs/ext2fs/ext2_extern.h b/sys/gnu/fs/ext2fs/ext2_extern.h index 9b0ce98..f07b7b7 100644 --- a/sys/gnu/fs/ext2fs/ext2_extern.h +++ b/sys/gnu/fs/ext2fs/ext2_extern.h @@ -39,24 +39,15 @@ * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94 */ -struct buf; -struct fid; -struct fs; +#ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_ +#define _SYS_GNU_EXT2FS_EXT2_EXTERN_H_ + +struct dinode; +struct ext2_inode; struct inode; struct mount; -struct nameidata; -struct proc; -struct statfs; -struct timeval; -struct ucred; -struct uio; struct vnode; -struct mbuf; -struct dinode; -struct ext2_group_desc; -struct ext2_inode; -__BEGIN_DECLS int ext2_alloc __P((struct inode *, daddr_t, daddr_t, int, struct ucred *, daddr_t *)); int ext2_balloc __P((struct inode *, @@ -105,16 +96,18 @@ void mark_buffer_dirty __P((struct buf *bh)); int bwrite(); /* FFS needs a bwrite routine. XXX */ #endif -/* this macros allows some of the ufs code to distinguish between - * an EXT2 and a non-ext2(FFS/LFS) vnode. +/* + * This macro allows the ufs code to distinguish between an EXT2 and a + * non-ext2(FFS/LFS) vnode. */ #define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS) #ifdef DIAGNOSTIC void ext2_checkoverlap __P((struct buf *, struct inode *)); #endif -__END_DECLS extern vop_t **ext2_vnodeop_p; extern vop_t **ext2_specop_p; extern vop_t **ext2_fifoop_p; + +#endif /* !_SYS_GNU_EXT2FS_EXT2_EXTERN_H_ */ -- cgit v1.1