Date: Wed, 17 Aug 2011 12:37:14 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r224935 - head/sys/kern Message-ID: <201108171237.p7HCbECv005467@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Aug 17 12:37:14 2011 New Revision: 224935 URL: http://svn.freebsd.org/changeset/base/224935 Log: Fix build breakage. Initialize error variables explicitely for !MAC case. Pointy hat to: kib Approved by: re (bz) Modified: head/sys/kern/uipc_sem.c head/sys/kern/uipc_shm.c Modified: head/sys/kern/uipc_sem.c ============================================================================== --- head/sys/kern/uipc_sem.c Wed Aug 17 09:52:34 2011 (r224934) +++ head/sys/kern/uipc_sem.c Wed Aug 17 12:37:14 2011 (r224935) @@ -270,6 +270,7 @@ ksem_chown(struct file *fp, uid_t uid, g struct ksem *ks; int error; + error = 0; ks = fp->f_data; mtx_lock(&sem_lock); #ifdef MAC Modified: head/sys/kern/uipc_shm.c ============================================================================== --- head/sys/kern/uipc_shm.c Wed Aug 17 09:52:34 2011 (r224934) +++ head/sys/kern/uipc_shm.c Wed Aug 17 12:37:14 2011 (r224935) @@ -699,6 +699,7 @@ shm_chown(struct file *fp, uid_t uid, gi struct shmfd *shmfd; int error; + error = 0; shmfd = fp->f_data; mtx_lock(&shm_timestamp_lock); #ifdef MAC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108171237.p7HCbECv005467>