From f4c303c47224f4582e83048b603fd32a68e7b560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 10 May 2004 14:56:48 +0000 Subject: [PATCH] Fixed some warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7498 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/glibc/libio/stdfiles.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kernel/libroot/posix/glibc/libio/stdfiles.c b/src/kernel/libroot/posix/glibc/libio/stdfiles.c index 979e92c9d6..d74fa1c412 100644 --- a/src/kernel/libroot/posix/glibc/libio/stdfiles.c +++ b/src/kernel/libroot/posix/glibc/libio/stdfiles.c @@ -70,9 +70,10 @@ #endif // ToDo: stdin/stdout were originally buffered -DEF_STDFILE(_IO_2_1_stdin_, 0, 0, _IO_NO_WRITES | _IO_UNBUFFERED); -DEF_STDFILE(_IO_2_1_stdout_, 1, &_IO_2_1_stdin_, _IO_NO_READS | _IO_UNBUFFERED); -DEF_STDFILE(_IO_2_1_stderr_, 2, &_IO_2_1_stdout_, _IO_NO_READS |_IO_UNBUFFERED); +// (and probably automatically switched to unbuffered for TTYs) +DEF_STDFILE(_IO_2_1_stdin_, 0, 0, _IO_NO_WRITES + _IO_UNBUFFERED); +DEF_STDFILE(_IO_2_1_stdout_, 1, &_IO_2_1_stdin_, _IO_NO_READS + _IO_UNBUFFERED); +DEF_STDFILE(_IO_2_1_stderr_, 2, &_IO_2_1_stdout_, _IO_NO_READS + _IO_UNBUFFERED); struct _IO_FILE_plus *_IO_list_all = &_IO_2_1_stderr_; INTVARDEF(_IO_list_all)