Whamcloud - gitweb
LU-6210 mgs: Change positional struct initializers to C99 94/23794/2
authorSteve Guminski <stephenx.guminski@intel.com>
Wed, 16 Nov 2016 15:30:45 +0000 (10:30 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 1 Jan 2017 02:01:01 +0000 (02:01 +0000)
commit5419eabdfedd80d3f30aa456ad7dd35c3198729b
treed8d7d579af5cc638978bbaf0ae7c95432ba208a1
parentcc311c0c9f884234a3458f471640a40d24c011b5
LU-6210 mgs: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
mgs directory that use C89 or GCC-only syntax are updated to C99
syntax.  Whitespace is corrected to match the coding style guidelines.

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/mgs/mgs_handler.c:
struct lustre_handle lockh
struct lustre_handle conn
lustre/mgs/mgs_llog.c:
struct mgs_fsdb_handler_data d

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I36cbeaae50982b6f72d271997b229c46d085a6ee
Reviewed-on: https://review.whamcloud.com/23794
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mgs/mgs_handler.c
lustre/mgs/mgs_llog.c