diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-08-16 23:47:40 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-08-17 00:48:18 +0900 |
commit | 0db68800c756f298ef45584ac01915c2cb2ce359 (patch) | |
tree | 2b8b93268b5ae5084e11bbd87b357f58ce845c99 /src/shared/ethtool-util.c | |
parent | 682f952cd788e15c079e2dfd2503e57dfc20281f (diff) | |
download | systemd-0db68800c756f298ef45584ac01915c2cb2ce359.tar.gz |
ethtool: make the size of 'features' array static
Diffstat (limited to 'src/shared/ethtool-util.c')
-rw-r--r-- | src/shared/ethtool-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/ethtool-util.c b/src/shared/ethtool-util.c index f77f6943ca..699c7a97ab 100644 --- a/src/shared/ethtool-util.c +++ b/src/shared/ethtool-util.c @@ -501,7 +501,7 @@ static int set_features_bit( return found ? 0 : -ENODATA; } -int ethtool_set_features(int *ethtool_fd, const char *ifname, const int *features) { +int ethtool_set_features(int *ethtool_fd, const char *ifname, const int features[static _NET_DEV_FEAT_MAX]) { _cleanup_free_ struct ethtool_gstrings *strings = NULL; struct ethtool_sfeatures *sfeatures; struct ifreq ifr = {}; |