ethtool: make the size of 'features' array static

This commit is contained in:
Yu Watanabe
2021-08-17 00:48:18 +09:00
parent 682f952cd7
commit 0db68800c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 = {};