summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-08 10:42:50 +0800
committerMeco Man <[email protected]>2021-02-08 10:42:50 +0800
commit9b428e519fc91204f4be5e91f1436ba6fd63119b (patch)
tree35229ac106e2aea8cc267d0ef73d3a9b0f230c83 /components/libc/compilers/common
parentd0c2631b1215af38eb07b24cd25a751640e9c07c (diff)
avoid warning
Diffstat (limited to 'components/libc/compilers/common')
-rw-r--r--components/libc/compilers/common/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index a67c0497af..bd251d99bf 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -329,7 +329,7 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz)
{
if (tv != RT_NULL)
{
- return stime(&tv->tv_sec);
+ return stime((const time_t *)&tv->tv_sec);
}
else
{