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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to