Date: Thu, 9 Oct 2003 11:13:43 -0700 (PDT) From: Andrew Reisse <areisse@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 39413 for review Message-ID: <200310091813.h99IDhPN095008@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=39413 Change 39413 by areisse@areisse_tislabs on 2003/10/09 11:13:08 fix for compiling sidtab for use in checkpolicy Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/security/sebsd/ss/sidtab.c#8 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/security/sebsd/ss/sidtab.c#8 (text+ko) ==== @@ -18,7 +18,10 @@ (sid & SIDTAB_HASH_MASK) #ifdef _KERNEL -#define INIT_SIDTAB_LOCK(s) mtx_init (&s->lock, "SEBSD sidtab lock", NULL, MTX_DEF) +#define INIT_SIDTAB_LOCK(s) \ + memset (&s->lock, 0, sizeof (struct mtx)); \ + mtx_init (&s->lock, "SEBSD sidtab lock", NULL, MTX_DEF) + #define SIDTAB_LOCK(s) mtx_lock(&s->lock) #define SIDTAB_UNLOCK(s) mtx_unlock(&s->lock) @@ -42,7 +45,6 @@ s->nel = 0; s->next_sid = 1; s->shutdown = 0; - memset (&s->lock, 0, sizeof (struct mtx)); INIT_SIDTAB_LOCK(s); return 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310091813.h99IDhPN095008>