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/entropy.c | |
parent | bab5b43abff8be8882f53537fc2c9d2a3df325d5 (diff) |
Change uint64_t to uintmax_t
Diffstat (limited to 'components/entropy.c')
-rw-r--r-- | components/entropy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/entropy.c b/components/entropy.c index 7f6112e..5173f15 100644 --- a/components/entropy.c +++ b/components/entropy.c @@ -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 * |