Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializer in mount_utils_zfs.c 25/27825/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 26 Jun 2017 17:53:13 +0000 (13:53 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 1 Aug 2017 05:34:42 +0000 (05:34 +0000)
commit990890eacf757d73fc87a83bfa703a51b739a05c
tree6280c656d1771b0733e4684f0d01413cd6aa0637
parent3f198baf4fe343b679ce14ee11069126f4be3e72
LU-6210 utils: Use C99 struct initializer in mount_utils_zfs.c

This patch makes no functional changes.  The ZLB_INIT macro 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: Ieaf53059782254935a13f0efd3f72785dacc0b8b
Reviewed-on: https://review.whamcloud.com/27825
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>
lustre/utils/mount_utils_zfs.c