OSDN Git Service

sysctl: avoid inline initialization
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Oct 2009 04:43:19 +0000 (00:43 -0400)
committerAustin Foxley <austinf@cetoncorp.com>
Mon, 9 Nov 2009 23:33:57 +0000 (15:33 -0800)
commita30f9acb812f908cf33a13dd6ffe3cfe51e13a74
tree1b4a7097bd1a722863e2b36b93d8477106ed9fac
parent964d40c5d90598d70616fe54de934ddda39bdc2c
sysctl: avoid inline initialization

Assign each field one by one rather than stack initialization as gcc will
call memset() to zero out the rest of the structure -- which we don't care
about as the field is unused and not seen outside of the libc.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libc/sysdeps/linux/common/sysctl.c