summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_extern.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-09 08:17:23 +0000
committerbde <bde@FreeBSD.org>1995-11-09 08:17:23 +0000
commit449a11eb8852c894681575cf4226b1c639a2f9bc (patch)
treed1df2f42cd1cf04bc5757d3dff0d353c3e6a3a58 /sys/ufs/ffs/ffs_extern.h
parent7b39ff1acd679291e1eaa968c4a256d7c6e3b22f (diff)
downloadFreeBSD-src-449a11eb8852c894681575cf4226b1c639a2f9bc.zip
FreeBSD-src-449a11eb8852c894681575cf4226b1c639a2f9bc.tar.gz
Introduced a type `vop_t' for vnode operation functions and used
it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.
Diffstat (limited to 'sys/ufs/ffs/ffs_extern.h')
-rw-r--r--sys/ufs/ffs/ffs_extern.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/ffs/ffs_extern.h b/sys/ufs/ffs/ffs_extern.h
index b190fa6..9a4bbfd 100644
--- a/sys/ufs/ffs/ffs_extern.h
+++ b/sys/ufs/ffs/ffs_extern.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94
- * $Id: ffs_extern.h,v 1.6 1995/03/28 07:57:46 bde Exp $
+ * $Id: ffs_extern.h,v 1.7 1995/09/06 05:41:16 dyson Exp $
*/
struct buf;
@@ -92,7 +92,7 @@ void ffs_checkoverlap __P((struct buf *, struct inode *));
#endif
__END_DECLS
-extern int (**ffs_vnodeop_p)();
-extern int (**ffs_specop_p)();
-extern int (**ffs_fifoop_p)();
+extern vop_t **ffs_vnodeop_p;
+extern vop_t **ffs_specop_p;
+extern vop_t **ffs_fifoop_p;
#define FFS_FIFOOPS ffs_fifoop_p
OpenPOWER on IntegriCloud