From 9f745c6aafd8c3fcf300dfebe87bedafb8bb2887 Mon Sep 17 00:00:00 2001 From: JasonJiaJie Date: Wed, 15 Nov 2017 09:41:06 +0800 Subject: [PATCH] [POSIX] 1.Fix parameter error. --- components/libc/termios/posix_termios.c | 4 ++-- 1 file 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); } /** -- GitLab