Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializer in lustre_rsync.c 14/27814/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 19 May 2017 19:51:36 +0000 (15:51 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:32:01 +0000 (03:32 +0000)
commit9afa14529b35de066b395abba448e4d2e9c2999f
treefc0e7a048fbc3ce76a8e161d374f97b1b1117b97
parent8e922ad47dc08e7c4a74c10d1a0d12b90d0c2031
LU-6210 utils: Use C99 struct initializer in lustre_c

This patch makes no functional changes.  The long_opts struct
initializer in lustre_rsync.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
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Ic89ee776d5c2578759554446cdc33f5861316130
Reviewed-on: https://review.whamcloud.com/27814
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
lustre/utils/lustre_rsync.c