Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializer for long_opt_start 89/27789/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 19 May 2017 18:58:59 +0000 (14:58 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:32:37 +0000 (03:32 +0000)
commitb2c88463370dbed1539e6d7a232f8096ac735c30
tree5d7ae74766c25d685593d7c046704d43368a62bc
parent3283170eeb05eb701197d981fa773b86f63c8a33
LU-6210 utils: Use C99 struct initializer for long_opt_start

This patch makes no functional changes.  The long_opt_start struct
initializer in lustre_lfsck.c is updated to C99 syntax.

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: Id14efb47d29a5f16382422df6a3ad19cdf3156bf
Reviewed-on: https://review.whamcloud.com/27789
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/utils/lustre_lfsck.c