Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_hsm_state() 25/27525/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:45:59 +0000 (15:45 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:23 +0000 (03:31 +0000)
commit73c2c103f4f43f9bb37119a2e90d6c0fc1870711
treef485250c87e79b407b9a2b767374e5b035aa9458
parent8f66e833b9042c8015bf7a5ce0dbe2fd8fb91af1
LU-6210 utils: Use C99 struct initializers in lfs_hsm_state()

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 lfs_hsm_state() to use the C99 syntax.

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