diff --git a/c/buf.c b/c/buf.c index d278db1..6000437 100644 --- a/c/buf.c +++ b/c/buf.c @@ -1,6 +1,8 @@ // Copyright 2019 Lassi Kortela // SPDX-License-Identifier: BSD-3-Clause +#include +#include #include #include #include @@ -39,7 +41,7 @@ void buf_putu(struct buf *buf, uint64_t u) { char tmp[24]; - snprintf(tmp, sizeof(tmp), "%llu", u); + snprintf(tmp, sizeof(tmp), "%" PRIu64, u); buf_puts(buf, tmp); } diff --git a/c/time_unix.c b/c/time_unix.c index d48da3f..6e0921f 100644 --- a/c/time_unix.c +++ b/c/time_unix.c @@ -1,6 +1,6 @@ -#include #include +#include #include #include #include