Xinqi Bao's Git

Change uint64_t to uintmax_t
[slstatus.git] / components / temperature.c
index 2c57853..71e1378 100644 (file)
@@ -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>