mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-02-06 10:41:44 +08:00
fix the implementation of gmtime_r in IPv6 demo (#1066)
This commit is contained in:
@@ -869,16 +869,12 @@ static void prvServerWorkTask( void * pvArgument )
|
||||
struct tm * gmtime_r( const time_t * pxTime,
|
||||
struct tm * tmStruct )
|
||||
{
|
||||
struct tm tm;
|
||||
|
||||
memcpy( &( tm ), gmtime( pxTime ), sizeof( tm ) );
|
||||
|
||||
if( tmStruct != NULL )
|
||||
{
|
||||
memcpy( tmStruct, &( tm ), sizeof tm );
|
||||
memcpy( tmStruct, gmtime( pxTime ), sizeof( struct tm ) );
|
||||
}
|
||||
|
||||
return &( tm );
|
||||
return tmStruct;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user