From 43a12832a343747b7317987b552a87eb8ed5b42d Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 7 Jul 2018 10:50:25 +0200 Subject: Change uint64_t to uintmax_t --- components/temperature.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/temperature.c') diff --git a/components/temperature.c b/components/temperature.c index 2c57853..71e1378 100644 --- a/components/temperature.c +++ b/components/temperature.c @@ -9,13 +9,13 @@ const char * temp(const char *file) { - uint64_t temp; + uintmax_t temp; - if(pscanf(file, "%" PRIu64, &temp) != 1) { + if(pscanf(file, "%" PRIuMAX, &temp) != 1) { return NULL; } - return bprintf("%" PRIu64, temp / 1000); + return bprintf("%" PRIuMAX, temp / 1000); } #elif defined(__OpenBSD__) #include -- cgit v1.2.3