From c3e49455410fee43dec92514e04dfed13eb8c587 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 2 Oct 1994 17:35:40 +0000 Subject: All of this is cosmetic. prototypes, #includes, printfs and so on. Makes GCC a lot more silent. --- sys/kern/kern_acct.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/kern/kern_acct.c') diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index 2360c55..46ed697 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -37,7 +37,7 @@ * SUCH DAMAGE. * * @(#)kern_acct.c 8.1 (Berkeley) 6/14/93 - * $Id$ + * $Id: kern_acct.c,v 1.5 1994/09/26 21:09:00 davidg Exp $ */ #include @@ -105,7 +105,8 @@ acct(p, uap, retval) int error; /* Make sure that the caller is root. */ - if (error = suser(p->p_ucred, &p->p_acflag)) + error = suser(p->p_ucred, &p->p_acflag); + if (error) return (error); /* @@ -114,7 +115,8 @@ acct(p, uap, retval) */ if (uap->path != NULL) { NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, uap->path, p); - if (error = vn_open(&nd, FWRITE, 0)) + error = vn_open(&nd, FWRITE, 0); + if (error) return (error); VOP_UNLOCK(nd.ni_vp); if (nd.ni_vp->v_type != VREG) { -- cgit v1.1