Whamcloud - gitweb
LU-6210 lnet: Use C99 struct initializer in framework.c 36/28436/2
authorSteve Guminski <stephenx.guminski@intel.com>
Mon, 7 Aug 2017 17:17:31 +0000 (13:17 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 31 Aug 2017 19:16:50 +0000 (19:16 +0000)
commit60c9a2d351d40b5306b586d08847b6c7727b73cf
tree096b324e82b35fb7daa482cb71281052d405d382
parent5eef95fee06f712694daba942f8e90a7df96e5e1
LU-6210 lnet: Use C99 struct initializer in framework.c

This patch makes no functional changes.  The struct initializer in
framework.c is 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.

Test-Parameters: trivial
Signed-off-by: Steve Guminski <stephenx.guminski@intel.com>
Change-Id: Id54894c6f9476a5bf3b9cb5077ca324703c28da4
Reviewed-on: https://review.whamcloud.com/28436
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lnet/selftest/framework.c