Whamcloud - gitweb
LU-6210 snmp: Change positional struct initializers to C99 63/23463/2
authorSteve Guminski <stephenx.guminski@intel.com>
Thu, 27 Oct 2016 19:18:43 +0000 (15:18 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 1 Jan 2017 02:00:29 +0000 (02:00 +0000)
commitc7558380b8e6dc6ac23879959731938bd5d32709
tree8775981f62f980d4082b9ddc290b4faecda0f3ae
parent59836594dd55b6b69c67048d92d355b88cd2fc00
LU-6210 snmp: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
snmp directory that use C89 or GCC-only syntax are updated to C99
syntax.

The C99 syntax prevents incorrect initialization if values are
accidently placed in the wrong position, allows changes in the struct
definition, and clears any members that are not given an explicit
value.

The following struct initializers have been updated:

snmp/lustre-snmp.c:
struct variable7 clusterFileSystems_variables[]
struct oid_table osd_table[]
struct oid_table osc_table[]
struct oid_table mds_table[]
struct oid_table mdc_table[]
struct oid_table cli_table[]
struct oid_table lov_table[]
struct oid_table ldlm_table[]

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Iaedd0165bca2a2af2ce6a0f535602a85c6217da8
Reviewed-on: https://review.whamcloud.com/23463
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
snmp/lustre-snmp.c