From 43a12832a343747b7317987b552a87eb8ed5b42d Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sat, 7 Jul 2018 10:50:25 +0200 Subject: Change uint64_t to uintmax_t --- components/entropy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/entropy.c') 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 * -- cgit v1.2.3