We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9e623 commit eefb87aCopy full SHA for eefb87a
FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_IPv6_Demo/IPv6_Multi_WinSim_demo/main.c
@@ -869,16 +869,12 @@ static void prvServerWorkTask( void * pvArgument )
869
struct tm * gmtime_r( const time_t * pxTime,
870
struct tm * tmStruct )
871
{
872
- struct tm tm;
873
-
874
- memcpy( &( tm ), gmtime( pxTime ), sizeof( tm ) );
875
876
if( tmStruct != NULL )
877
878
- memcpy( tmStruct, &( tm ), sizeof tm );
+ memcpy( tmStruct, gmtime( pxTime ), sizeof( struct tm ) );
879
}
880
881
- return &( tm );
+ return tmStruct;
882
883
/*-----------------------------------------------------------*/
884
0 commit comments