]> git.cameronkatri.com Git - pw-darwin.git/commit
Fixed style issues with variable ordering and naming, spacing and
authorSean Farley <scf@FreeBSD.org>
Sun, 23 Nov 2008 23:26:12 +0000 (23:26 +0000)
committerSean Farley <scf@FreeBSD.org>
Sun, 23 Nov 2008 23:26:12 +0000 (23:26 +0000)
commitde93bd3807fda6b4c5a3c8d607413b8869f7e8d8
tree1fdb55de710bfd912d488d87c9f62e42923e7dfd
parent83c1d785dfb8bceaad5d4f1b9ce2f7cd4cb802a0
Fixed style issues with variable ordering and naming, spacing and
parentheses.

Fixed alignment issue in gr_dup() in its assignment of gr_mem using a
struct to force alignment without performing alignment mathematics.  This
was noticed recently with libutil was built with WARNS=6 on platform such
as sparc64.

Added checks to gr_dup(), gr_equal() and gr_make() to prevent segfaults
when examining struct group's with the struct members pointing to NULL's.

With fix of alignment issue, restore WARNS?=6.

Reviewed by: des
MFC after: 1 week
libutil/gr_util.c