summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_acct.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-02 17:35:40 +0000
committerphk <phk@FreeBSD.org>1994-10-02 17:35:40 +0000
commitc3e49455410fee43dec92514e04dfed13eb8c587 (patch)
tree63e8cb7113791c7e2efaced539ff5283adf25d25 /sys/kern/kern_acct.c
parent29627a3d7d000aefc2860e1042707614018a2b57 (diff)
downloadFreeBSD-src-c3e49455410fee43dec92514e04dfed13eb8c587.zip
FreeBSD-src-c3e49455410fee43dec92514e04dfed13eb8c587.tar.gz
All of this is cosmetic. prototypes, #includes, printfs and so on. Makes
GCC a lot more silent.
Diffstat (limited to 'sys/kern/kern_acct.c')
-rw-r--r--sys/kern/kern_acct.c8
1 files changed, 5 insertions, 3 deletions
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 <sys/param.h>
@@ -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) {
OpenPOWER on IntegriCloud