Skip to content

Commit

Permalink
Fix HTTP_S3_Download compile warning (FreeRTOS#1195)
Browse files Browse the repository at this point in the history
* Fix xPlatformIsNetworkUp() is undeclared warning
* Fix cast const type warning

Co-authored-by: Soren Ptak <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2024
1 parent 857962d commit 8517050
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ static JSONStatus_t prvParseCredentials( HTTPResponse_t * pxResponse,
* @return pdPASS on success, pdFAIL on failure.
*/
static BaseType_t prvGetTemporaryCredentials( TransportInterface_t * pxTransportInterface,
const char * pcDateISO8601,
char * pcDateISO8601,
size_t xDateISO8601Len,
HTTPResponse_t * pxResponse,
SigV4Credentials_t * pxSigvCreds );
Expand Down Expand Up @@ -582,6 +582,10 @@ void vStartSimpleHTTPDemo( void )

/*-----------------------------------------------------------*/

extern BaseType_t xPlatformIsNetworkUp( void );

/*-----------------------------------------------------------*/

/**
* @brief Entry point of the demo.
*
Expand Down Expand Up @@ -1177,7 +1181,7 @@ static BaseType_t prvDownloadS3ObjectFile( const TransportInterface_t * pxTransp
}

static BaseType_t prvGetTemporaryCredentials( TransportInterface_t * pxTransportInterface,
const char * pcDateISO8601,
char * pcDateISO8601,
size_t xDateISO8601Len,
HTTPResponse_t * pxResponse,
SigV4Credentials_t * pxSigvCreds )
Expand Down

0 comments on commit 8517050

Please sign in to comment.