diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-07-07 10:50:25 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-07-07 10:50:25 +0200 |
commit | 2eae958bb76e074f67b4a68dffcfd266164a2801 (patch) | |
tree | 28df6fc8f8aacd557b2c97a00a8cac321949c745 /components/temperature.c | |
parent | bab5b43abff8be8882f53537fc2c9d2a3df325d5 (diff) |
Change uint64_t to uintmax_t
Diffstat (limited to 'components/temperature.c')
-rw-r--r-- | components/temperature.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <stdio.h> |