From b5cd18739a64c8d923a55b61c89ae3900faafd84 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 21:17:12 +0100 Subject: Fix include paths and formatting inconsistencies --- lib/libc/stdio/fclose.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/fclose.c') diff --git a/lib/libc/stdio/fclose.c b/lib/libc/stdio/fclose.c index 8f0b4cef..8b0586c6 100644 --- a/lib/libc/stdio/fclose.c +++ b/lib/libc/stdio/fclose.c @@ -1,6 +1,6 @@ -#include -#include -#include +#include // for __IMPL +#include // for fflush, FILE, fclose, stderr, stdin, stdout +#include // for close int fclose(FILE *stream) { @@ -8,7 +8,7 @@ int fclose(FILE *stream) return -1; if (stream != stdin && stream != stdout && stream != stderr) { - if (close(stream->fd) == -1) + if (close(__IMPL(stream)->fd) == -1) return -1; } -- cgit v1.2.3