Xinqi Bao's Git

cpu_freq: Change to 64 bit integers
[slstatus.git] / components / entropy.c
index 7f6112e..5173f15 100644 (file)
@@ -8,14 +8,14 @@
        const char *
        entropy(void)
        {
-               uint64_t num;
+               uintmax_t num;
 
                if (pscanf("/proc/sys/kernel/random/entropy_avail",
-                          "%" PRIu64, &num) != 1) {
+                          "%" PRIuMAX, &num) != 1) {
                        return NULL;
                }
 
-               return bprintf("%" PRIu64, num);
+               return bprintf("%" PRIuMAX, num);
        }
 #elif defined(__OpenBSD__)
        const char *