From: Steve Guminski Date: Fri, 14 Apr 2017 19:39:39 +0000 (-0400) Subject: LU-6210 utils: Use C99 initializers in lfs_changelog_clear() X-Git-Tag: 2.10.0-RC1~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=107b2cba7e4a05e2aa7318c20ad7142f88083c35;hp=107b2cba7e4a05e2aa7318c20ad7142f88083c35 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 Change-Id: Ib9847af80b7eb76bf81b9692baa5c6deb4cdad85 Reviewed-on: https://review.whamcloud.com/27523 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: John L. Hammond ---