Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lhsmtool_posix.c 28/27528/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:50:51 +0000 (15:50 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 16 Jun 2017 16:54:31 +0000 (16:54 +0000)
commitb5a93d1595c5d47599ab97f93882703d30074aed
treeffb5c9c8bf8de0a7f932a10b899916297cb6dfc8
parentb96b6f20764a806902898890046b31dcfa2f8dae
LU-6210 utils: Use C99 struct initializers in lhsmtool_posix.c

This patch makes no functional changes.  Struct initializers that
use C89 or GCC-only syntax are updated to C99 syntax.

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

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