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/pclose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdio/pclose.c') diff --git a/lib/libc/stdio/pclose.c b/lib/libc/stdio/pclose.c index a515981c..1967b2c8 100644 --- a/lib/libc/stdio/pclose.c +++ b/lib/libc/stdio/pclose.c @@ -6,5 +6,5 @@ int pclose(FILE *stream) { int stat; fclose(stream); - return (waitpid(__FILE(stream)->pid, &stat, 0) < 0) ? -1 : stat; + return (waitpid(stream->pid, &stat, 0) < 0) ? -1 : stat; } -- cgit v1.2.3