Whamcloud - gitweb
LU-6210 utils: Change positional struct initializers to C99 37/23537/15
authorSteve Guminski <stephenx.guminski@intel.com>
Tue, 8 Nov 2016 21:38:15 +0000 (16:38 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 15 Feb 2017 01:03:17 +0000 (01:03 +0000)
commit70e9d4ecc9130aeed1260d78cd8b33a5cde6edd7
tree611b8802a427e3ee8d742fe6df60c35d0e49f587
parente4761eb1f4d564f111be66a61ac84f9f9be97fc2
LU-6210 utils: Change positional struct initializers to C99

This patch makes no functional changes.  Struct initializers in the
utils directory that use C89 or GCC-only syntax are updated to C99
syntax.  Whitespace is corrected to match the coding style guidelines.
Variables of type struct option have been renamed to long_opts for
consistency.

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:

utils/gss/gssd.c:
struct sembuf op (2 occurrences)
utils/gss/lgss_sk.c:
static struct option long_opt[]
utils/gss/lsupport.c:
static struct convert_struct converter[]
static struct user_mapping mapping
utils/gss/svcgssd_mech2file.c:
static const struct oid2mech o2m[]

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I9bee8bbea817afc369a34252513ad3bdee947851
Reviewed-on: https://review.whamcloud.com/23537
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/gss/gssd.c
lustre/utils/gss/lgss_sk.c
lustre/utils/gss/lsupport.c
lustre/utils/gss/svcgssd_mech2file.c