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/vdprintf.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'lib/libc/stdio/vdprintf.c') diff --git a/lib/libc/stdio/vdprintf.c b/lib/libc/stdio/vdprintf.c index 66a041cc..4647d641 100644 --- a/lib/libc/stdio/vdprintf.c +++ b/lib/libc/stdio/vdprintf.c @@ -1,12 +1,16 @@ -#include -#include +#include "__stdio.h" // for __FILE + +#include // for vfprintf, _IONBF, va_list, vdprintf int vdprintf(int fildes, const char *restrict format, va_list ap) { int r; - FILE f; - f.fd = fildes; - f.type = _IONBF; - r = vfprintf(&f, format, ap); + struct __FILE stream; + + stream.fd = fildes; + stream.type = _IONBF; + + r = vfprintf(&stream, format, ap); + return r; } -- cgit v1.2.3