Whamcloud - gitweb
LU-6210 utils: Use C99 initializers in lfs_setdirstripe() 15/27515/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:16:23 +0000 (15:16 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:55:53 +0000 (16:55 +0000)
commit3c60d60188e129f1cad3ed79153626fa118376ae
treeb1c9ec8f9657db0508a386802ef044d7e9cc7aae
parent5f10f164aceae33dd9a6d4cb3470b6a4874734df
LU-6210 utils: Use C99 initializers in lfs_setdirstripe()

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

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