Fix HTTP_S3_Download compile warning (#1195)

* Fix xPlatformIsNetworkUp() is undeclared warning
* Fix cast const type warning

Co-authored-by: Soren Ptak <ptaksoren@gmail.com>
Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com>
pull/1149/head^2
chinglee-iot 10 months ago committed by GitHub
parent 857962d638
commit 8517050490
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 );
@ -582,6 +582,10 @@ void vStartSimpleHTTPDemo( void )
/*-----------------------------------------------------------*/
extern BaseType_t xPlatformIsNetworkUp( void );
/*-----------------------------------------------------------*/
/**
* @brief Entry point of the demo.
*
@ -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 )

Loading…
Cancel
Save