summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/stderr.c
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/stdio/stderr.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/stdio/stderr.c')
-rw-r--r--lib/libc/stdio/stderr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/stderr.c b/lib/libc/stdio/stderr.c
index 155f0e3e..ec115fd0 100644
--- a/lib/libc/stdio/stderr.c
+++ b/lib/libc/stdio/stderr.c
@@ -2,6 +2,7 @@
#include "stdatomic.h" // for ATOMIC_FLAG_INIT
#include <fcntl.h> // for O_WRONLY
+#include <stdio.h> // for FILE, stderr
#include <unistd.h> // for STDERR_FILENO
#define BUFSIZ 4096
@@ -19,4 +20,4 @@ struct __FILE __stderr = { .fd = STDERR_FILENO,
.offset = 0,
.lock = ATOMIC_FLAG_INIT };
-struct FILE *const stderr = (struct FILE *)&__stderr;
+FILE *const stderr = (FILE *)&__stderr;