mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
libc/settimeofday: correct prototype of settimeofday()
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
52525796ab
commit
c839fc45af
+2
-1
@@ -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
|
* 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;
|
struct timespec ts;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user