Skip to content

Commit

Permalink
Merge pull request #136 from madrisan/clang-warn
Browse files Browse the repository at this point in the history
lib/netinfo-private: fix Clang 17 warning
  • Loading branch information
madrisan authored Nov 9, 2023
2 parents 1e6cac2 + 3dffbb8 commit 2ea02e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netinfo-private.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ check_link_speed (const char *ifname, uint32_t *speed, uint8_t *duplex)
#ifdef ETHTOOL_GLINKSETTINGS
# define ETHTOOL_LINK_MODE_MASK_MAX_KERNEL_NU32 (SCHAR_MAX)
struct elinkset {
struct ethtool_link_settings req;
uint32_t link_mode_data[3 * ETHTOOL_LINK_MODE_MASK_MAX_KERNEL_NU32];
struct ethtool_link_settings req;
} elinkset;
#endif

Expand Down

0 comments on commit 2ea02e2

Please sign in to comment.