Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializer in mkfs_lustre.c 15/27815/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 19 May 2017 19:59:17 +0000 (15:59 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:32:04 +0000 (03:32 +0000)
commit56ca45bc5a514f415c9c13ae00e2c276a6b82a52
treed9abc07c691c26c8f9da6ddc69fb73e04b20ff76
parent9afa14529b35de066b395abba448e4d2e9c2999f
LU-6210 utils: Use C99 struct initializer in mkfs_lustre.c

This patch makes no functional changes.  The long_opt_start
struct initializer in mkfs_lustre.c is updated to C99 syntax.
The option struct and option string have been renamed to long_opts
and short_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: Icbc6be0eeaf6bf369a1b593917115378b2e3e159
Reviewed-on: https://review.whamcloud.com/27815
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/mkfs_lustre.c