mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[POSIX]
1.Fix parameter error.
This commit is contained in:
1 parent
b747164942
commit
9f745c6aaf
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user