aboutsummaryrefslogtreecommitdiff
path: root/sys/isofs/cd9660/iso.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-11-09 08:17:23 +0000
committerBruce Evans <bde@FreeBSD.org>1995-11-09 08:17:23 +0000
commitf57e65478df5b3ada8a4f7afb89a6cc633bb55fd (patch)
treed1df2f42cd1cf04bc5757d3dff0d353c3e6a3a58 /sys/isofs/cd9660/iso.h
parent932c2f65d3ce95d07fb96839ebb32c8953771e27 (diff)
downloadsrc-f57e65478df5b3ada8a4f7afb89a6cc633bb55fd.tar.gz
src-f57e65478df5b3ada8a4f7afb89a6cc633bb55fd.zip
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.
Notes
Notes: svn path=/head/; revision=12158
Diffstat (limited to 'sys/isofs/cd9660/iso.h')
-rw-r--r--sys/isofs/cd9660/iso.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/iso.h b/sys/isofs/cd9660/iso.h
index bf5c44cf68c3..fa9e2c025f13 100644
--- a/sys/isofs/cd9660/iso.h
+++ b/sys/isofs/cd9660/iso.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)iso.h 8.2 (Berkeley) 1/23/94
- * $Id: iso.h,v 1.6 1995/07/25 21:50:50 bde Exp $
+ * $Id: iso.h,v 1.7 1995/10/31 12:13:49 phk Exp $
*/
#define ISODCL(from, to) (to - from + 1)
@@ -223,7 +223,7 @@ int iso_ilock __P((struct iso_node *ip));
int iso_iunlock __P((struct iso_node *ip));
int cd9660_mountroot __P((void));
-extern int (**cd9660_vnodeop_p)();
+extern vop_t **cd9660_vnodeop_p;
static inline int
isonum_711(p)