Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in llverfs.c 30/27530/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:54:46 +0000 (15:54 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:29 +0000 (03:31 +0000)
commitdb46268d3be602f04ff9beb00e15f945dcd44434
treefe873a7e379eb4c6a63004d16852e60fb3b2a116
parentc26a4d72445c7ce02e370cc84932d7cc89416966
LU-6210 utils: Use C99 struct initializers in llverfs.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 llverfs.c to use the C99 syntax.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Ifa3882f435f546715c7a22c31934a9f17b1bfc01
Reviewed-on: https://review.whamcloud.com/27530
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/llverfs.c