Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lshowmount.c 32/27532/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:57:55 +0000 (15:57 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:37 +0000 (03:31 +0000)
commitc87553ac891f092f5e9bb4eef9cf06b6516e5e48
tree1bc058687bfa94027667330203b156fe3304d6c5
parentbbac283b4488cd34245347e59631e3f0bb3bc792
LU-6210 utils: Use C99 struct initializers in lshowmount.c

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 lshowmount.c to use the C99 syntax.

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