diff options
author | bde <bde@FreeBSD.org> | 1995-11-09 08:17:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-09 08:17:23 +0000 |
commit | 449a11eb8852c894681575cf4226b1c639a2f9bc (patch) | |
tree | d1df2f42cd1cf04bc5757d3dff0d353c3e6a3a58 /sys/nfsclient/nfsnode.h | |
parent | 7b39ff1acd679291e1eaa968c4a256d7c6e3b22f (diff) | |
download | FreeBSD-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/nfsclient/nfsnode.h')
-rw-r--r-- | sys/nfsclient/nfsnode.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/nfsclient/nfsnode.h b/sys/nfsclient/nfsnode.h index 8de6cdc..02cc1c3 100644 --- a/sys/nfsclient/nfsnode.h +++ b/sys/nfsclient/nfsnode.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfsnode.h 8.4 (Berkeley) 2/13/94 - * $Id: nfsnode.h,v 1.12 1995/10/29 15:33:19 phk Exp $ + * $Id: nfsnode.h,v 1.13 1995/11/06 00:36:03 bde Exp $ */ #ifndef _NFS_NFSNODE_H_ @@ -151,9 +151,9 @@ struct nfsnode { extern TAILQ_HEAD(nfs_bufq, buf) nfs_bufq; #if defined(KERNEL) || defined(_KERNEL) -extern int (**fifo_nfsv2nodeop_p)(); -extern int (**nfsv2_vnodeop_p)(); -extern int (**spec_nfsv2nodeop_p)(); +extern vop_t **fifo_nfsv2nodeop_p; +extern vop_t **nfsv2_vnodeop_p; +extern vop_t **spec_nfsv2nodeop_p; /* * Prototypes for NFS vnode operations |