Skip to content

Commit a28063f

Browse files
committed
Make standard streams all different; stdin == stdout is surprising
1 parent 7fd1360 commit a28063f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mos-platform/common/c/stdio-minimal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
// These need to be non-null, but their contents otherwise doesn't matter.
99
__attribute__((weak)) FILE *stdin = (FILE *)1;
10-
__attribute__((weak)) FILE *stdout = (FILE *)1;
11-
__attribute__((weak)) FILE *stderr = (FILE *)1;
10+
__attribute__((weak)) FILE *stdout = (FILE *)2;
11+
__attribute__((weak)) FILE *stderr = (FILE *)3;
1212

1313
// Character input/output functions
1414

0 commit comments

Comments
 (0)