Skip to content

Commit a26eb8e

Browse files
committed
Fiexd some build errors of ff_netstat with gcc-12.2.0.
1 parent 88d100f commit a26eb8e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

dpdk/drivers/net/mlx5/mlx5_ethdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,6 @@ mlx5_sysfs_switch_info(unsigned int ifindex, struct mlx5_switch_info *info)
17101710
}
17111711

17121712
if (!real_if_indextoname(ifindex, ifname)) {
1713-
17141713
rte_errno = errno;
17151714
return -rte_errno;
17161715
}

tools/netstat/if.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ intpr(void (*pfunc)(char *), int af)
393393
case AF_LINK:
394394
{
395395
struct sockaddr_dl *sdl;
396-
char linknum[10];
396+
char linknum[sizeof("<Link#32767>")];
397397

398398
sdl = (struct sockaddr_dl *)ifa->ifa_addr;
399399
sprintf(linknum, "<Link#%d>", sdl->sdl_index);

0 commit comments

Comments
 (0)