Whamcloud - gitweb
LU-6210 utils: Use C99 struct initializers in lfs_setstripe() 63/25063/8
authorSteve Guminski <stephenx.guminski@intel.com>
Wed, 25 Jan 2017 21:41:10 +0000 (16:41 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Jun 2017 20:31:19 +0000 (20:31 +0000)
commitd61792d0f5fa1e313ec216a5dcb833381cbec92b
tree6a106b9792b2928e890e60ac7ba9183296013816
parentd9c146f670ab433632d6d7536592a4240de616a4
LU-6210 utils: Use C99 struct initializers in lfs_setstripe()

This patch makes no functional changes.  Struct initializers that
use C89 or GCC-only syntax are updated to C99 syntax.  Whitespace is
corrected to match the coding style guidelines.  Variables of type
struct option have been 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_setstripe() to use the C99 syntax.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Iebc512d0e781db8a887b1e8461153a7a18b0dd08
Reviewed-on: https://review.whamcloud.com/25063
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lfs.c