Skip to content
Snippets Groups Projects
Commit c7558380 authored by Steve Guminski's avatar Steve Guminski Committed by Oleg Drokin
Browse files

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: default avatarSteve Guminski <stephenx.guminski@intel.com>
Change-Id: Iaedd0165bca2a2af2ce6a0f535602a85c6217da8
Reviewed-on: https://review.whamcloud.com/23463


Tested-by: Jenkins
Tested-by: default avatarMaloo <hpdd-maloo@intel.com>
Reviewed-by: default avatarFrank Zago <fzago@cray.com>
Reviewed-by: default avatarDmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: default avatarJames Simmons <uja.ornl@yahoo.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
parent 59836594
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment