summaryrefslogtreecommitdiff
path: root/components/uptime.c
diff options
context:
space:
mode:
authorAaron Marcher <me@drkhsh.at>2018-07-07 10:50:25 +0200
committerAaron Marcher <me@drkhsh.at>2018-07-07 10:50:25 +0200
commit2eae958bb76e074f67b4a68dffcfd266164a2801 (patch)
tree28df6fc8f8aacd557b2c97a00a8cac321949c745 /components/uptime.c
parentbab5b43abff8be8882f53537fc2c9d2a3df325d5 (diff)
Change uint64_t to uintmax_t
Diffstat (limited to 'components/uptime.c')
-rw-r--r--components/uptime.c4
1 files changed, 2 insertions, 2 deletions
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);
}