소스 검색

[POSIX]

1.Fix parameter error.
JasonJiaJie 7 년 전
부모
커밋
9f745c6aaf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      components/libc/termios/posix_termios.c

+ 2 - 2
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);
 }
 
 /**