Whamcloud - gitweb
LU-6210 tests: Change positional struct initializers to C99 68/23568/3
authorSteve Guminski <stephenx.guminski@intel.com>
Thu, 3 Nov 2016 15:44:04 +0000 (11:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 1 Jan 2017 02:00:35 +0000 (02:00 +0000)
commitf13b2a4cea69d8c4c079d03d58f55d32a54a9679
tree29f5e46f70c272d4a683305db5ce366fb206d90f
parentc7558380b8e6dc6ac23879959731938bd5d32709
LU-6210 tests: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
tests directory that use C89 or GCC-only syntax are updated to C99
syntax.

The C99 syntax prevents incorrect initialization if values are
accidently placed in the wrong position, allows changes in the struct
definition, and clears any members that are not given an explicit
value.

The following struct initializers have been updated:

lustre/tests/checkfiemap.c:
struct option long_opts[]
lustre/tests/llapi_layout_test.c:
static struct test_tbl_entry test_tbl[]
lustre/tests/mcreate.c:
struct option opts[]
lustre/tests/mmap_sanity.c:
struct test_case tests[]
lustre/tests/mpi/mdsrate.c:
struct option longOpts[]
lustre/tests/statmany.c:
struct option longopts[]

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Iadc141507664c97dcc3112c382d4e379a1bf8041
Reviewed-on: https://review.whamcloud.com/23568
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/checkfiemap.c
lustre/tests/llapi_layout_test.c
lustre/tests/mcreate.c
lustre/tests/mmap_sanity.c
lustre/tests/mpi/mdsrate.c
lustre/tests/statmany.c