Whamcloud - gitweb
LU-6210 utils: Use C99 initializers in lfs_changelog_clear() 23/27523/2
authorSteve Guminski <stephenx.guminski@intel.com>
Fri, 14 Apr 2017 19:39:39 +0000 (15:39 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Jun 2017 16:56:15 +0000 (16:56 +0000)
commit107b2cba7e4a05e2aa7318c20ad7142f88083c35
treee39c9e21555224292de8c8a56bdd24bd9638458b
parentce7bb5449ab15bb9c6e8a1b2dc22be7c8efe74be
LU-6210 utils: Use C99 initializers in lfs_changelog_clear()

This patch makes no functional changes.  Struct initializers that
use C89 or GCC-only syntax are updated to C99 syntax.  Variables of
type struct option are renamed to long_opts for consistency.

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

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