Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Nov 1995 00:17:28 -0800
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/msdosfs denode.h msdosfs_vnops.c
Message-ID:  <199511090817.AAA26474@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         95/11/09 00:17:25

  Modified:    sys/gnu/ext2fs  ext2_extern.h ext2_vnops.c
               sys/isofs/cd9660  iso.h cd9660_vnops.c cd9660_node.h
               sys/kern  vfs_subr.c vfs_init.c
               sys/ufs/ffs  ffs_vnops.c ffs_extern.h
               sys/ufs/lfs  lfs_extern.h lfs_vnops.c
               sys/ufs/mfs  mfs_vfsops.c mfs_vnops.c
               sys/ufs/ufs  ufs_vnops.c
               sys/miscfs/nullfs  null.h null_vnops.c
               sys/miscfs/deadfs  dead_vnops.c
               sys/miscfs/fdesc  fdesc.h fdesc_vnops.c
               sys/miscfs/fifofs  fifo.h fifo_vnops.c
               sys/miscfs/kernfs  kernfs.h kernfs_vnops.c
               sys/miscfs/portal  portal.h portal_vnops.c
               sys/miscfs/procfs  procfs.h procfs_vnops.c
               sys/miscfs/specfs  specdev.h spec_vnops.c
               sys/miscfs/umapfs  umap.h umap_vnops.c
               sys/miscfs/union  union.h union_vnops.c
               sys/miscfs/devfs  devfsdefs.h devfs_vnops.c
               sys/nfs   nfsnode.h nfs_vnops.c
               sys/sys   vnode.h
               sys/msdosfs  denode.h msdosfs_vnops.c
  Log:
  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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511090817.AAA26474>