Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_df() 18/27518/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:25:15 +0000 (15:25 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:56:00 +0000 (16:56 +0000)
commitf905bc45f49a183d8953001bd5da2741ab8c6d62
treea87c49b92d85e7ea3ac5f96afe2d05cb0d99a6bd
parent3c60d60188e129f1cad3ed79153626fa118376ae
LU-6210 utils: Use C99 struct initializers in lfs_df()

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 lfs_df() to use the C99 syntax.

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