fix return type of vnode print routine

This commit is contained in:
cgd 1993-12-22 13:14:10 +00:00
parent cc4170c743
commit ae30022085
3 changed files with 8 additions and 6 deletions

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: kernfs_vnops.c,v 1.15 1993/12/20 12:39:12 cgd Exp $ * $Id: kernfs_vnops.c,v 1.16 1993/12/22 13:14:10 cgd Exp $
*/ */
/* /*
@ -646,11 +646,12 @@ kernfs_inactive(vp, p)
* Print out the contents of a kernfs vnode. * Print out the contents of a kernfs vnode.
*/ */
/* ARGSUSED */ /* ARGSUSED */
void int
kernfs_print(vp) kernfs_print(vp)
struct vnode *vp; struct vnode *vp;
{ {
printf("tag VT_KERNFS, kernfs vnode\n"); printf("tag VT_KERNFS, kernfs vnode\n");
return (0);
} }
/* /*

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)spec_vnops.c 7.37 (Berkeley) 5/30/91 * from: @(#)spec_vnops.c 7.37 (Berkeley) 5/30/91
* $Id: spec_vnops.c,v 1.9 1993/12/18 03:59:02 mycroft Exp $ * $Id: spec_vnops.c,v 1.10 1993/12/22 13:14:42 cgd Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -502,13 +502,14 @@ spec_close(vp, flag, cred, p)
/* /*
* Print out the contents of a special device vnode. * Print out the contents of a special device vnode.
*/ */
void int
spec_print(vp) spec_print(vp)
struct vnode *vp; struct vnode *vp;
{ {
printf("tag VT_NON, dev %d, %d\n", major(vp->v_rdev), printf("tag VT_NON, dev %d, %d\n", major(vp->v_rdev),
minor(vp->v_rdev)); minor(vp->v_rdev));
return (0);
} }
/* /*

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* from: @(#)specdev.h 7.4 (Berkeley) 4/19/91 * from: @(#)specdev.h 7.4 (Berkeley) 4/19/91
* $Id: specdev.h,v 1.5 1993/09/07 15:41:56 ws Exp $ * $Id: specdev.h,v 1.6 1993/12/22 13:14:44 cgd Exp $
*/ */
#ifndef _SYS_SPECDEV_H_ #ifndef _SYS_SPECDEV_H_
@ -214,7 +214,7 @@ int spec_bmap __P((
daddr_t *bnp)); daddr_t *bnp));
int spec_strategy __P(( int spec_strategy __P((
struct buf *bp)); struct buf *bp));
void spec_print __P(( int spec_print __P((
struct vnode *vp)); struct vnode *vp));
#define spec_islocked ((int (*) __P(( \ #define spec_islocked ((int (*) __P(( \
struct vnode *vp))) nullop) struct vnode *vp))) nullop)