aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2024-02-06 11:52:34 -0500
committerStephen Hemminger <stephen@networkplumber.org>2024-02-14 19:06:36 -0800
commitd9b886d745ada3b8481e041ceca579c6f3acbea3 (patch)
tree7b9e599827367255389cf5d419de496809f89dca
parentd06f6a3d1766b42cb0d93537a77c46cdcb877745 (diff)
downloadiproute2-d9b886d745ada3b8481e041ceca579c6f3acbea3.tar.gz
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: 5a52102b7c8f ("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>
-rw-r--r--misc/ifstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ifstat.c b/misc/ifstat.c
index 721f49149..767cedd4a 100644
--- a/misc/ifstat.c
+++ b/misc/ifstat.c
@@ -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];
};