-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cellular Library] Fix build warning message. #37
Conversation
@@ -1679,7 +1676,7 @@ void test__Cellular_PktioSendAtCmd_Invalid_String( void ) | |||
CellularPktStatus_t pktStatus = CELLULAR_PKT_STATUS_OK; | |||
CellularContext_t context; | |||
CellularCommInterface_t * pCommIntf = &CellularCommInterface; | |||
CellularCommInterfaceHandle_t commInterfaceHandle; | |||
CellularCommInterfaceHandle_t commInterfaceHandle = ( CellularCommInterfaceHandle_t ) malloc( sizeof( CellularCommInterfaceHandle_t ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
malloc fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer to this change.
@@ -903,11 +903,10 @@ void test_Cellular_ATStrtoi_Happy_Path( void ) | |||
{ | |||
CellularATError_t cellularStatus = CELLULAR_AT_SUCCESS; | |||
char * pStr = malloc( sizeof( char ) * ( strlen( CELLULAR_SAMPLE_STRTOL_HAPPY_CASE_STRING ) + 1 ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
malloc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please refer to this change.
common/src/cellular_pktio.c
Outdated
@@ -676,7 +676,7 @@ static CellularPktStatus_t _handleMsgType( CellularContext_t * pContext, | |||
if( *ppAtResp == NULL ) | |||
{ | |||
*ppAtResp = _Cellular_AtResponseNew(); | |||
LogDebug( ( "Allocat at response %p", *ppAtResp ) ); | |||
LogDebug( ( "Allocat at response %p", ( void * ) *ppAtResp ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the correction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to this change for the correction.
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.