Whamcloud - gitweb
LU-6210 utils: Use C99 initializer in jt_nodemap_del_range() 83/27883/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 22 May 2017 12:46:52 +0000 (08:46 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 5 Aug 2017 00:38:18 +0000 (00:38 +0000)
commit2b90c15b72c25711793cc4ea46b964098131c736
treececa634a54f06384fa277adb56977ea59c495363
parentdad40c1980cbe67ec60055258f435cc3369745db
LU-6210 utils: Use C99 initializer in jt_nodemap_del_range()

This patch makes no functional changes.  The long_options struct
initializer in jt_nodemap_del_range() 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: I442d2cb65c1ffefc2229ead83e04b7ec2d8160e5
Reviewed-on: https://review.whamcloud.com/27883
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