From acfa1f50c24add6b9a78d94af21f9350150fb9c2 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 7 Jul 2018 11:08:26 +0200 Subject: Simplify format specifiers for uintmax_t --- components/netspeeds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/netspeeds.c') diff --git a/components/netspeeds.c b/components/netspeeds.c index ac9c4a6..02c030e 100644 --- a/components/netspeeds.c +++ b/components/netspeeds.c @@ -5,7 +5,7 @@ #include "../util.h" #if defined(__linux__) - #include + #include const char * netspeed_rx(const char *interface) @@ -22,7 +22,7 @@ interface) < 0) { return NULL; } - if (pscanf(path, "%" PRIuMAX, &rxbytes) != 1) { + if (pscanf(path, "%ju", &rxbytes) != 1) { return NULL; } if (oldrxbytes == 0) { @@ -48,7 +48,7 @@ interface) < 0) { return NULL; } - if (pscanf(path, "%" PRIuMAX, &txbytes) != 1) { + if (pscanf(path, "%ju", &txbytes) != 1) { return NULL; } if (oldtxbytes == 0) { -- cgit v1.2.3