mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 16:57:41 -04:00
fix the implementation of gmtime_r in IPv6 demo (#1066)
This commit is contained in:
parent
9a9e6236a1
commit
eefb87aa0d
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue