Date: Sun, 23 Nov 2008 23:26:12 +0000 (UTC) From: Sean Farley <scf@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libutil Makefile gr_util.c Message-ID: <200811232326.mANNQRWH051046@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
scf 2008-11-23 23:26:12 UTC FreeBSD src repository Modified files: lib/libutil Makefile gr_util.c Log: SVN rev 185237 on 2008-11-23 23:26:12Z by scf 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 Revision Changes Path 1.72 +2 -2 src/lib/libutil/Makefile 1.3 +96 -74 src/lib/libutil/gr_util.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811232326.mANNQRWH051046>