From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/stdio/setvbuf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc/stdio/setvbuf.c') diff --git a/lib/libc/stdio/setvbuf.c b/lib/libc/stdio/setvbuf.c index 686640f4..d6b41d31 100644 --- a/lib/libc/stdio/setvbuf.c +++ b/lib/libc/stdio/setvbuf.c @@ -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 (__FILE(stream)->fd < 0) + if (stream->fd < 0) return -1; - __FILE(stream)->buf = buf; - __FILE(stream)->buf_size = size; - __FILE(stream)->buf_pos = 0; - __FILE(stream)->type = type; + stream->buf = buf; + stream->buf_size = size; + stream->buf_pos = 0; + stream->type = type; return 0; } -- cgit v1.2.3