diff options
| author | David Lechner | 2020-03-21 17:19:49 -0500 |
|---|---|---|
| committer | Damien George | 2020-03-25 00:59:05 +1100 |
| commit | 3b07736b6d4d6c8110e487b0001661f9251b5016 (patch) | |
| tree | 218755bc398bc2762ea3666f6517fc63b0fcf8c5 /ports/windows/windows_mphal.c | |
| parent | 100012bec6e8103fcf4aa429dfe1bd801301d642 (diff) | |
unix,windows: Use STDIN_FILENO, STDOUT_FILENO macros where appropriate.
This replaces 0 and 1 with STDIN_FILENO and STDOUT_FILENO to make the
intention of the code clearer.
Diffstat (limited to 'ports/windows/windows_mphal.c')
| -rw-r--r-- | ports/windows/windows_mphal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/windows/windows_mphal.c b/ports/windows/windows_mphal.c index 7835c6121..6ee37fdd2 100644 --- a/ports/windows/windows_mphal.c +++ b/ports/windows/windows_mphal.c @@ -222,7 +222,7 @@ int mp_hal_stdin_rx_chr(void) { void mp_hal_stdout_tx_strn(const char *str, size_t len) { MP_THREAD_GIL_EXIT(); - write(1, str, len); + write(STDOUT_FILENO, str, len); MP_THREAD_GIL_ENTER(); } |
