From 34c35163e45b7773b8b6edb92a3341d37f2acce6 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 12 Oct 2022 17:15:57 +0200 Subject: [PATCH] libc: use the normal names that everybody uses for stdout and stderr --- libs/libc/src/init.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/libc/src/init.cpp b/libs/libc/src/init.cpp index 72587cc7..13b7356d 100644 --- a/libs/libc/src/init.cpp +++ b/libs/libc/src/init.cpp @@ -9,10 +9,10 @@ extern "C" void initialize_libc() close(0); // If it was already open, close it close(1); // If it was already open, close it errno = 0; // If it was not open. the kernel will throw us EBADF. Let's ignore that, since we don't care. - __stderr = fopen("/dev/console", "rw"); + stderr = fopen("/dev/console", "rw"); if (!stderr) exit(errno); - __stdout = fopen("/dev/console", "rw"); + stdout = fopen("/dev/console", "rw"); if (!stdout) exit(errno); - clearerr(__stderr); - clearerr(__stdout); + clearerr(stderr); + clearerr(stdout); } \ No newline at end of file