summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-08-17 12:37:14 +0000
committerkib <kib@FreeBSD.org>2011-08-17 12:37:14 +0000
commit324611138f42e3d7da30299e93065769ba5f1ff6 (patch)
tree0d84b35da4b1386c8f5ebf08175fcea6f6bedb09
parentfaed057a37aea66f5aab5479bcd2dc76ca146025 (diff)
downloadFreeBSD-src-324611138f42e3d7da30299e93065769ba5f1ff6.zip
FreeBSD-src-324611138f42e3d7da30299e93065769ba5f1ff6.tar.gz
Fix build breakage. Initialize error variables explicitely for !MAC case.
Pointy hat to: kib Approved by: re (bz)
-rw-r--r--sys/kern/uipc_sem.c1
-rw-r--r--sys/kern/uipc_shm.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c
index 95c29c0..f77bf3b 100644
--- a/sys/kern/uipc_sem.c
+++ b/sys/kern/uipc_sem.c
@@ -270,6 +270,7 @@ ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
struct ksem *ks;
int error;
+ error = 0;
ks = fp->f_data;
mtx_lock(&sem_lock);
#ifdef MAC
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 45989cf..57fd5eb 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -699,6 +699,7 @@ shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
struct shmfd *shmfd;
int error;
+ error = 0;
shmfd = fp->f_data;
mtx_lock(&shm_timestamp_lock);
#ifdef MAC
OpenPOWER on IntegriCloud