Whamcloud - gitweb
LU-6210 utils: Use C99 initializers in lfs_get_ladvice() 27/27527/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:49:11 +0000 (15:49 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:26 +0000 (03:31 +0000)
commitc26a4d72445c7ce02e370cc84932d7cc89416966
treed158aaa0fcd0a9860b10e8b498ad9ca2a290f52d
parent73c2c103f4f43f9bb37119a2e90d6c0fc1870711
LU-6210 utils: Use C99 initializers in lfs_get_ladvice()

This patch makes no functional changes.  Struct initializers that
use C89 or GCC-only syntax are updated to C99 syntax.  Variables of
type struct option are 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.

This patch updates lfs_get_ladvice() to use the C99 syntax.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Ida06e903a53aae37c878eebb8707b8062bef59dc
Reviewed-on: https://review.whamcloud.com/27527
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/utils/lfs.c