summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorbernard <[email protected]>2022-12-21 00:28:33 +0800
committerguo <[email protected]>2022-12-26 14:24:26 +0800
commit1f092da9e0b332f3a03b09d030acc470a0169599 (patch)
tree445af714ebc8f12ee9005a84321afa1592fbcc58 /components/libc
parent401ad164498cadfb5db89ddfeecac478a4f70d58 (diff)
fix compiling warning.
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/posix/io/termios/termios.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/libc/posix/io/termios/termios.c b/components/libc/posix/io/termios/termios.c
index 84061079d9..ece9081d9d 100644
--- a/components/libc/posix/io/termios/termios.c
+++ b/components/libc/posix/io/termios/termios.c
@@ -13,6 +13,7 @@
#include <unistd.h>
#include <sys/errno.h>
#include "termios.h"
+#include <rtthread.h>
int tcgetattr(int fd, struct termios *tio)
{
@@ -95,12 +96,12 @@ int tcsendbreak(int fd, int dur)
int tcflush(int fd, int queue)
{
- return ioctl(fd, TCFLSH, (void*)queue);
+ return ioctl(fd, TCFLSH, (void*)(rt_ubase_t)queue);
}
int tcflow(int fd, int action)
{
- return ioctl(fd, TCXONC, (void*)action);
+ return ioctl(fd, TCXONC, (void*)(rt_ubase_t)action);
}
/**