aboutsummaryrefslogtreecommitdiff
path: root/test-features.c
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2016-03-11 09:58:20 -0800
committerBen Hutchings <ben@decadent.org.uk>2016-03-13 17:20:07 +0000
commit42517719b21e769a6b211bdcb112d96861877a3e (patch)
treeb983cf752fad25b198ab758ded63e5ec17a871df /test-features.c
parent685adc7b77deb29082d054dd8c42e1d69b05cc59 (diff)
downloadethtool-42517719b21e769a6b211bdcb112d96861877a3e.tar.gz
test-features.c: add braces around array initialization
This fixes: test-features.c:21:1: error: missing braces around initializer [-Werror=missing-braces] cmd_gssetinfo = { { ETHTOOL_GSSET_INFO, 0, 1ULL << ETH_SS_FEATURES }, 34 }; ^ Signed-off-by: Maciej Żenczykowski <maze@google.com> Signed-off-by: David Decotigny <decot@googlers.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'test-features.c')
-rw-r--r--test-features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-features.c b/test-features.c
index d7bd994..6ebb364 100644
--- a/test-features.c
+++ b/test-features.c
@@ -18,7 +18,7 @@ static const struct {
struct ethtool_sset_info cmd;
u32 data[1];
}
-cmd_gssetinfo = { { ETHTOOL_GSSET_INFO, 0, 1ULL << ETH_SS_FEATURES }, 34 };
+cmd_gssetinfo = { { ETHTOOL_GSSET_INFO, 0, 1ULL << ETH_SS_FEATURES }, { 34 } };
static const struct ethtool_value
cmd_grxcsum_off = { ETHTOOL_GRXCSUM, 0 },