Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in llverdev.c 29/27529/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:53:14 +0000 (15:53 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 16 Jun 2017 16:53:58 +0000 (16:53 +0000)
commitb96b6f20764a806902898890046b31dcfa2f8dae
tree6dc0ef68a8b225a6086a2e4854a220056b5e4bed
parent107b2cba7e4a05e2aa7318c20ad7142f88083c35
LU-6210 utils: Use C99 struct initializers in llverdev.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 llverdev.c to use the C99 syntax.

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