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/uptime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/uptime.c') diff --git a/components/uptime.c b/components/uptime.c index f957f17..67acbf7 100644 --- a/components/uptime.c +++ b/components/uptime.c @@ -8,7 +8,7 @@ const char * uptime(void) { - uint64_t h, m; + uintmax_t h, m; struct timespec uptime; if (clock_gettime(CLOCK_BOOTTIME, &uptime) < 0) { @@ -19,5 +19,5 @@ uptime(void) h = uptime.tv_sec / 3600; m = uptime.tv_sec % 3600 / 60; - return bprintf("%" PRIu64 "h %" PRIu64 "m", h, m); + return bprintf("%" PRIuMAX "h %" PRIuMAX "m", h, m); } -- cgit v1.2.3