diff options
author | bde <bde@FreeBSD.org> | 1997-12-20 00:25:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-12-20 00:25:01 +0000 |
commit | 52dbbb4e05be883bd5704f179a9ff219642ed4d9 (patch) | |
tree | a384db79d22f29a249d641cdfca81c29af8d54cb /sys | |
parent | 598fd6fc0bcb8533583983a31645be25a6b9072d (diff) | |
download | FreeBSD-src-52dbbb4e05be883bd5704f179a9ff219642ed4d9.zip FreeBSD-src-52dbbb4e05be883bd5704f179a9ff219642ed4d9.tar.gz |
Added a used include.
Fixed a gratuitous ANSIism and nearby KNF violations.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_common.c | 15 | ||||
-rw-r--r-- | sys/nfs/nfs_subs.c | 15 | ||||
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 15 | ||||
-rw-r--r-- | sys/nfsserver/nfs_srvsubs.c | 15 |
4 files changed, 36 insertions, 24 deletions
diff --git a/sys/nfs/nfs_common.c b/sys/nfs/nfs_common.c index 7820a81..9f33785 100644 --- a/sys/nfs/nfs_common.c +++ b/sys/nfs/nfs_common.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $ + * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $ */ /* @@ -43,6 +43,7 @@ * copy data between mbuf chains and uio lists. */ #include <sys/param.h> +#include <sys/buf.h> #include <sys/proc.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err) } int -nfsrv_object_create(struct vnode *vp) { +nfsrv_object_create(vp) + struct vnode *vp; +{ - if ((vp == NULL) || (vp->v_type != VREG)) - return 1; - return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1); + if (vp == NULL || vp->v_type != VREG) + return (1); + return (vfs_object_create(vp, curproc, + curproc ? curproc->p_ucred : NULL, 1)); } #endif /* NFS_NOSERVER */ - diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 7820a81..9f33785 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $ + * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $ */ /* @@ -43,6 +43,7 @@ * copy data between mbuf chains and uio lists. */ #include <sys/param.h> +#include <sys/buf.h> #include <sys/proc.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err) } int -nfsrv_object_create(struct vnode *vp) { +nfsrv_object_create(vp) + struct vnode *vp; +{ - if ((vp == NULL) || (vp->v_type != VREG)) - return 1; - return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1); + if (vp == NULL || vp->v_type != VREG) + return (1); + return (vfs_object_create(vp, curproc, + curproc ? curproc->p_ucred : NULL, 1)); } #endif /* NFS_NOSERVER */ - diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 7820a81..9f33785 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $ + * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $ */ /* @@ -43,6 +43,7 @@ * copy data between mbuf chains and uio lists. */ #include <sys/param.h> +#include <sys/buf.h> #include <sys/proc.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err) } int -nfsrv_object_create(struct vnode *vp) { +nfsrv_object_create(vp) + struct vnode *vp; +{ - if ((vp == NULL) || (vp->v_type != VREG)) - return 1; - return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1); + if (vp == NULL || vp->v_type != VREG) + return (1); + return (vfs_object_create(vp, curproc, + curproc ? curproc->p_ucred : NULL, 1)); } #endif /* NFS_NOSERVER */ - diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 7820a81..9f33785 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $ + * $Id: nfs_subs.c,v 1.47 1997/11/07 08:53:24 phk Exp $ */ /* @@ -43,6 +43,7 @@ * copy data between mbuf chains and uio lists. */ #include <sys/param.h> +#include <sys/buf.h> #include <sys/proc.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -2081,11 +2082,13 @@ nfsrv_errmap(nd, err) } int -nfsrv_object_create(struct vnode *vp) { +nfsrv_object_create(vp) + struct vnode *vp; +{ - if ((vp == NULL) || (vp->v_type != VREG)) - return 1; - return vfs_object_create(vp, curproc, curproc?curproc->p_ucred:NULL, 1); + if (vp == NULL || vp->v_type != VREG) + return (1); + return (vfs_object_create(vp, curproc, + curproc ? curproc->p_ucred : NULL, 1)); } #endif /* NFS_NOSERVER */ - |