summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/setvbuf.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/setvbuf.c
parent4e2112e165fdd94dee58378e3ea32892f3710cd7 (diff)
feat: clang-tidy fixes
Diffstat (limited to 'lib/libc/stdio/setvbuf.c')
-rw-r--r--lib/libc/stdio/setvbuf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/stdio/setvbuf.c b/lib/libc/stdio/setvbuf.c
index 02928a35..686640f4 100644
--- a/lib/libc/stdio/setvbuf.c
+++ b/lib/libc/stdio/setvbuf.c
@@ -1,7 +1,7 @@
#include "stddef.h" // for NULL
-#include <libc.h> // for __IMPL
-#include <stdio.h> // for _IONBF, FILE, _IOFBF, _IOLBF, setvbuf, size_t
+#include <__stdio.h> // for __FILE
+#include <stdio.h> // for _IONBF, FILE, _IOFBF, _IOLBF, setvbuf, size_t
int setvbuf(FILE *restrict stream, char *restrict buf, int type, size_t size)
{
@@ -10,13 +10,13 @@ int setvbuf(FILE *restrict stream, char *restrict buf, int type, size_t size)
if (type != _IONBF && (buf == NULL || size == 0))
return -1;
- if (__IMPL(stream)->fd < 0)
+ if (__FILE(stream)->fd < 0)
return -1;
- __IMPL(stream)->buf = buf;
- __IMPL(stream)->buf_size = size;
- __IMPL(stream)->buf_pos = 0;
- __IMPL(stream)->type = type;
+ __FILE(stream)->buf = buf;
+ __FILE(stream)->buf_size = size;
+ __FILE(stream)->buf_pos = 0;
+ __FILE(stream)->type = type;
return 0;
}