Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_getdirstripe 21/28421/2
authorSteve Guminski <stephenx.guminski@intel.com>
Tue, 8 Aug 2017 17:46:24 +0000 (13:46 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Aug 2017 06:26:46 +0000 (06:26 +0000)
commit0568e93539ebc1bbec601182f9faba4d43ed106b
tree0031559bd48557790987cb1af55c817e008cdeb6
parente71fd5643766bed894d77951fa66b58d3b448563
LU-6210 utils: Use C99 struct initializers in lfs_getdirstripe

This patch makes no functional changes.  The option struct
initializer in lfs_getdirstripe() 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
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I6f2d4a82e5a9ef2c76946746d6c46b1202e8c278
Reviewed-on: https://review.whamcloud.com/28421
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/utils/lfs.c