diff options
| author | JasonJiaJie <[email protected]> | 2017-11-15 09:41:06 +0800 |
|---|---|---|
| committer | JasonJiaJie <[email protected]> | 2017-11-15 09:41:06 +0800 |
| commit | 9f745c6aafd8c3fcf300dfebe87bedafb8bb2887 (patch) | |
| tree | 9fa3ffd126c7ea62aab2d0a6c563ac8f102fb678 | |
| parent | b7471649427f409dec0350389223f59e39f997f3 (diff) | |
[POSIX]
1.Fix parameter error.
| -rw-r--r-- | components/libc/termios/posix_termios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c index 4ec513ef1d..72afa8188d 100644 --- a/components/libc/termios/posix_termios.c +++ b/components/libc/termios/posix_termios.c @@ -111,12 +111,12 @@ int tcsendbreak(int fd, int dur) int tcflush(int fd, int queue) { - return ioctl(fd, TCFLSH, (void*)queue); + return ioctl(fd, TCFLSH, (void*)&queue); } int tcflow(int fd, int action) { - return ioctl(fd, TCXONC, (void*)action); + return ioctl(fd, TCXONC, (void*)&action); } /** |
