From f7f3de79e04da2c30e7ce20026ec321c71e52750 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Wed, 15 Dec 1999 08:36:44 +0000 Subject: [PATCH] g/c redundant vn_isunder() prototype (it.s in ) minor KNF changes --- sys/kern/vfs_getcwd.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c index 2650eea10c21..30c1b98385e2 100644 --- a/sys/kern/vfs_getcwd.c +++ b/sys/kern/vfs_getcwd.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_getcwd.c,v 1.10 1999/07/11 09:27:23 sommerfeld Exp $ */ +/* $NetBSD: vfs_getcwd.c,v 1.11 1999/12/15 08:36:44 jdolecek Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -63,8 +63,6 @@ static int getcwd_common __P((struct vnode *, struct vnode *, char **, char *, int, int, struct proc *)); -int vn_isunder __P((struct vnode *, struct vnode *, struct proc *)); - #define DIRENT_MINSIZE (sizeof(struct dirent) - (MAXNAMLEN+1) + 4) /* @@ -370,7 +368,8 @@ getcwd_getcache(lvpp, uvpp, bpp, bufp) #define GETCWD_CHECK_ACCESS 0x0001 -static int getcwd_common (lvp, rvp, bpp, bufp, limit, flags, p) +static int +getcwd_common (lvp, rvp, bpp, bufp, limit, flags, p) struct vnode *lvp; struct vnode *rvp; char **bpp; @@ -505,7 +504,8 @@ out: * Intended to be used in chroot, chdir, fchdir, etc., to ensure that * chroot() actually means something. */ -int vn_isunder(lvp, rvp, p) +int +vn_isunder(lvp, rvp, p) struct vnode *lvp; struct vnode *rvp; struct proc *p; @@ -527,7 +527,8 @@ int vn_isunder(lvp, rvp, p) * Intended to be used from ptrace/procfs sorts of things. */ -int proc_isunder (p1, p2) +int +proc_isunder (p1, p2) struct proc *p1; struct proc *p2; { @@ -549,7 +550,8 @@ int proc_isunder (p1, p2) * to reading directory contents. */ -int sys___getcwd(p, v, retval) +int +sys___getcwd(p, v, retval) struct proc *p; void *v; register_t *retval; @@ -597,6 +599,3 @@ out: free(path, M_TEMP); return error; } - - -