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 | 43a12832a343747b7317987b552a87eb8ed5b42d (patch) | |
tree | 28df6fc8f8aacd557b2c97a00a8cac321949c745 /components/entropy.c | |
parent | d76b1a21fc014395cf9f7bd4e14180a3a0945e9c (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 * |