mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 05:55:11 +08:00
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:
parent
d06f6a3d17
commit
d9b886d745
@ -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];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user