From: Stephen Gallagher Date: Tue, 6 Feb 2024 16:52:34 +0000 (-0500) Subject: iproute2: fix type incompatibility in ifstat.c X-Git-Tag: v6.8.0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9b886d745ada3b8481e041ceca579c6f3acbea3;p=thirdparty%2Fiproute2.git 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 Signed-off-by: Stephen Gallagher Signed-off-by: Stephen Hemminger --- 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]; };