iproute2: fix type incompatibility in ifstat.c

Throughout ifstat.c, ifstat_ent.val is accessed as a long long unsigned
type, however it is defined as __u64. This works by coincidence on many
systems, however on ppc64le, __u64 is a long unsigned.

This patch makes the type definition consistent with all of the places
where it is accessed.

Fixes: 5a52102b7c ("ifstat: Add extended statistics to ifstat")

Reviewed-by: Andrea Claudi <aclaudi@redhat.com>

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Gallagher 2024-02-06 11:52:34 -05:00 committed by Stephen Hemminger
parent d06f6a3d17
commit d9b886d745

View File

@ -58,7 +58,7 @@ struct ifstat_ent {
struct ifstat_ent *next;
char *name;
int ifindex;
__u64 val[MAXS];
unsigned long long val[MAXS];
double rate[MAXS];
__u32 ival[MAXS];
};