gcc -Wmissing-field-initializers noticed several struct initializations
authorDavid Levine <levinedl@acm.org>
Sat, 14 Jan 2012 15:21:32 +0000 (09:21 -0600)
committerDavid Levine <levinedl@acm.org>
Sat, 14 Jan 2012 15:21:32 +0000 (09:21 -0600)
commit2ce001e1b0b7cc5366ea2804f66726e57910282b
tree413e050f4522aea04710b82fcdbd9aa2539ea368
parente4ccf20dcb722d8110e2a22f03e960e8f9f67898
gcc -Wmissing-field-initializers noticed several struct initializations
that didn't explicitly list all fields.  Most were of no consequence because
they were for static data, so they were all initialized properly.  However,
the two in mhlsbr.c were missing an initialization of other than their last
field, and they contained some subsequent values other than zero.  So, those
later fields were initialized incorrectly.  Also, changed the initialization
of global.c_ovtxt from "" to NULL because free_queue () freed it if non-NULL,
though I think the "" was always overwritten.
sbr/addrsbr.c
uip/mhlsbr.c
uip/post.c
uip/replsbr.c