libc/settimeofday: correct prototype of settimeofday()
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
52525796ab
commit
c839fc45af
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user