Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_find() 13/27513/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:06:45 +0000 (15:06 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:11 +0000 (03:31 +0000)
commitfcb2dfa7a20fec396b6b5dfd23a791e13115bbed
tree8ad830b28a35c1d0f210c4bcab2a0740fa24532f
parentc866e2ad4b5fa0e512d1dc7135f37b59f3544205
LU-6210 utils: Use C99 struct initializers in lfs_find()

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

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