Whamcloud - gitweb
LU-6210 utils: Use C99 initializer for lfsck_types_names 64/30264/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 19 May 2017 19:25:37 +0000 (15:25 -0400)
committerJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Dec 2017 18:43:11 +0000 (18:43 +0000)
commit7cdc62964119f5f13070d0549d157e4a6135dc5c
treea26c401447d7458458771df65c7524e0062596ed
parentad56044ff664e28643968b227a0b71d09baf7cfb
LU-6210 utils: Use C99 initializer for lfsck_types_names

This patch makes no functional changes.  The lfsck_types_names
struct initializer in lustre_lfsck.c is 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.

Test-Parameters: trivial
Lustre-change: https://review.whamcloud.com/27791
Lustre-commit: a1d62378ed98e2663c1f95f955433e2a5b13d68c

Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I8a3b44b56263b00a926550e4122193300c0c399f
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30264
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/utils/lustre_lfsck.c