Whamcloud - gitweb
LU-6210 utils: Use C99 initializer in jt_nodemap_del_idmap() 91/27891/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 22 May 2017 13:04:01 +0000 (09:04 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 29 Jul 2017 00:03:03 +0000 (00:03 +0000)
commit9999d2d959e74f79be00e1708d0e53c5e600c47a
treef70a8067d09db1939b074f5930e27143cba750b9
parentfc55dd29cfaccbe925839ff665591c85313e3359
LU-6210 utils: Use C99 initializer in jt_nodemap_del_idmap()

This patch makes no functional changes.  The long_options struct
initializer in jt_nodemap_del_idmap() 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: Ic97d308286ce03507bf3f928d9a2b23d6d39947f
Reviewed-on: https://review.whamcloud.com/27891
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>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/utils/obd.c