summaryrefslogtreecommitdiff
path: root/lib/libc/inttypes
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-09 23:14:53 +0100
commit169daa11155988a210fac949297381743f3cb400 (patch)
tree602ef5df5ae9ea075ab3d5dac3c8ad60da1ea2cc /lib/libc/inttypes
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/inttypes')
-rw-r--r--lib/libc/inttypes/imaxabs.c3
-rw-r--r--lib/libc/inttypes/strtoumax.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/inttypes/imaxabs.c b/lib/libc/inttypes/imaxabs.c
index c5137ecc..cbf46d14 100644
--- a/lib/libc/inttypes/imaxabs.c
+++ b/lib/libc/inttypes/imaxabs.c
@@ -1,4 +1,5 @@
-#include <stdint.h> // for intmax_t
+#include <inttypes.h> // for imaxabs
+#include <stdint.h> // for intmax_t
intmax_t imaxabs(intmax_t j)
{
diff --git a/lib/libc/inttypes/strtoumax.c b/lib/libc/inttypes/strtoumax.c
index 46eecf06..73d2c77c 100644
--- a/lib/libc/inttypes/strtoumax.c
+++ b/lib/libc/inttypes/strtoumax.c
@@ -1,5 +1,6 @@
-#include <stdint.h> // for uintmax_t
-#include <stdlib.h> // for strtoull
+#include <inttypes.h> // for strtoumax
+#include <stdint.h> // for uintmax_t
+#include <stdlib.h> // for strtoull
uintmax_t strtoumax(const char *restrict s, char **restrict p, int base)
{