Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lsnapshot 17/28417/3
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 7 Aug 2017 19:50:39 +0000 (15:50 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 17 Aug 2017 01:30:38 +0000 (01:30 +0000)
commit6e27028b08eace5fc9a141d33499940ef00c9761
treedbfccd12bec1751d17c0948bd1bd717515d4bfac
parent650b7450b612943e7ade76434c3be70b06f58f58
LU-6210 utils: Use C99 struct initializers in lsnapshot

This patch makes no functional changes.  The long_options struct
initializers in lsnapshot are updated to C99 syntax.  The long
options are renamed to long_opts for consistency.

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: Ieccc018218597ade289378fc8666988bf969d924
Reviewed-on: https://review.whamcloud.com/28417
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lsnapshot.c