Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in mntdf() 17/27517/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:23:03 +0000 (15:23 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:31:18 +0000 (03:31 +0000)
commit0ff91d6ad8c71498e29f442119327e166f527281
tree79d66eca89b5aa1dbd04a45d4d1f1ebd3b945e3d
parent59ed16fa7591513691a812ada1c9b1ebb2b426f7
LU-6210 utils: Use C99 struct initializers in mntdf()

This patch makes no functional changes.  Struct initializers that
use C89 or GCC-only syntax are 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.

This patch updates mntdf() to use the C99 syntax.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Ic4e446ecb03695b2526b0890f7bfeb76b1bfee88
Reviewed-on: https://review.whamcloud.com/27517
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/utils/lfs.c