Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_mv() 16/27516/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:19:41 +0000 (15:19 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:14 +0000 (03:31 +0000)
commit59ed16fa7591513691a812ada1c9b1ebb2b426f7
tree7c1ece1ec27bc5b9990f5e111f3b3e4105cc2078
parentfcb2dfa7a20fec396b6b5dfd23a791e13115bbed
LU-6210 utils: Use C99 struct initializers in lfs_mv()

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

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I81b9ace65b7f26766173199f6a14d947ccc86158
Reviewed-on: https://review.whamcloud.com/27516
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lfs.c