Whamcloud - gitweb
LU-6210 utils: Use C99 initializer in jt_obd_md_common() 79/27879/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 22 May 2017 12:13:56 +0000 (08:13 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 29 Jul 2017 00:02:48 +0000 (00:02 +0000)
commitf4e95a4429e9f6a8aa8170984bc6f8cd14cd5db0
tree164148b6735d4043b7cb2cb1e454f947a872994e
parent47e696f03c9c9e8df43971ab365d3d799b634dd6
LU-6210 utils: Use C99 initializer in jt_obd_md_common()

This patch makes no functional changes.  The long_opts struct
initializer in jt_obd_md_common() 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: Ifa7140e9980570940f8dfd1200307d02242a8c45
Reviewed-on: https://review.whamcloud.com/27879
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>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
lustre/utils/obd.c