Whamcloud - gitweb
LU-6210 osd: Change positional struct initializers to C99
This patch makes no functional changes. Struct initializers in the
osd directories 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/osd-ldiskfs/osd_scrub.c:
static const struct osd_lf_map osd_lf_maps[]
static const struct osd_lf_map osd_dl_maps[]
lustre/osd-zfs/osd_oi.c:
static const struct named_oid oids[]
Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I1aa2bf64f0efcbd9c34f21f60c462f7a95c41f98
Reviewed-on: https://review.whamcloud.com/23770
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>