Explorar o código

avoid warning

Meco Man %!s(int64=4) %!d(string=hai) anos
pai
achega
9b428e519f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/libc/compilers/common/time.c

+ 1 - 1
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
     {