diff options
| author | Meco Man <[email protected]> | 2021-05-03 09:17:46 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-05-03 09:17:46 +0800 |
| commit | 8fee8d2c8cd30dea66cb60fa45e89538f2961c35 (patch) | |
| tree | 89f84b3ea25bb1f31e35d92399d25ae51ca23e78 /components/libc | |
| parent | 1a55702ccb3f18f354c6f541d12e7a2eaa204569 (diff) | |
remove const in set_timeval
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/common/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index d5436e50e3..9996212444 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -128,7 +128,7 @@ static rt_err_t get_timeval(struct timeval *tv) * @param tv: struct timeval * @return the operation status, RT_EOK on successful */ -static int set_timeval(const struct timeval *tv) +static int set_timeval(struct timeval *tv) { #ifdef RT_USING_RTC static rt_device_t device = RT_NULL; @@ -450,7 +450,7 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz) if (tv != RT_NULL && tv->tv_sec >= 0 && tv->tv_usec >= 0 - && set_timeval(tv) == RT_EOK) + && set_timeval((struct timeval *)tv) == RT_EOK) { return 0; } |
