Whamcloud - gitweb
LU-6210 utils: Use C99 initializers in lfs_setquota_times() 19/27519/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:27:22 +0000 (15:27 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:56:08 +0000 (16:56 +0000)
commitce7bb5449ab15bb9c6e8a1b2dc22be7c8efe74be
tree6b56e5cf58edcae72761960d782e314c371c95ba
parentf905bc45f49a183d8953001bd5da2741ab8c6d62
LU-6210 utils: Use C99 initializers in lfs_setquota_times()

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

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: I50c6260246e0ac345d8b981dd624791bab9220a5
Reviewed-on: https://review.whamcloud.com/27519
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