summaryrefslogtreecommitdiff
path: root/src/shared/ethtool-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-08-16 23:47:40 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-08-17 00:48:18 +0900
commit0db68800c756f298ef45584ac01915c2cb2ce359 (patch)
tree2b8b93268b5ae5084e11bbd87b357f58ce845c99 /src/shared/ethtool-util.c
parent682f952cd788e15c079e2dfd2503e57dfc20281f (diff)
downloadsystemd-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.c2
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 = {};