diff --git a/include/sys/time.h b/include/sys/time.h index 0069de9eaa..6243cea632 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -212,7 +212,8 @@ int gettimeofday(FAR struct timeval *tv, FAR struct timezone *tz); * ****************************************************************************/ -int settimeofday(FAR const struct timeval *tv, FAR struct timezone *tz); +int settimeofday(FAR const struct timeval *tv, + FAR const struct timezone *tz); /**************************************************************************** * Name: adjtime diff --git a/libs/libc/time/lib_settimeofday.c b/libs/libc/time/lib_settimeofday.c index 8e0b33e401..5e2e7ea396 100644 --- a/libs/libc/time/lib_settimeofday.c +++ b/libs/libc/time/lib_settimeofday.c @@ -54,7 +54,7 @@ * ****************************************************************************/ -int settimeofday(FAR const struct timeval *tv, FAR struct timezone *tz) +int settimeofday(FAR const struct timeval *tv, FAR const struct timezone *tz) { struct timespec ts;