Whamcloud - gitweb
LU-6210 utils: Use C99 initializer in jt_nodemap_test_id() 81/27881/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 26 Jun 2017 18:09:14 +0000 (14:09 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 5 Aug 2017 00:38:15 +0000 (00:38 +0000)
commitdad40c1980cbe67ec60055258f435cc3369745db
treed4a0722c7354fc82ee9afeabb294c91b87b23f58
parent2e875d5fc5b73f735bd42f5da54c23e4c2d35d5c
LU-6210 utils: Use C99 initializer in jt_nodemap_test_id()

This patch makes no functional changes.  The long_options struct
initializer in jt_nodemap_test_id() is updated to C99 syntax.
It is renamed to long_opts for consistency.

C89 positional initializers require values to be placed in the
correct order. This will cause errors if the fields of the struct
definition are reordered or fields are added or removed. C99 named
initializers avoid this problem, and also automatically clear any
values that are not explicitly set.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Iddbee594f8ccd9cada11c6c792e31656c16f7170
Reviewed-on: https://review.whamcloud.com/27881
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/utils/obd.c