]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.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)
commit805da51abdacd1804445c89c086a7f826f825073
treec82fa735fa0343e49226a4f99f96ed188666f415
parentb6562075bbc0153c961f070142c1e2684fff0fea
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
lib/libutil/Makefile
lib/libutil/gr_util.c