Skip to content

Commit a5b0ae8

Browse files
authored
Update compare function return value (#108)
* Use int instead of int32_t for _searchCompareFunc function
1 parent fd61654 commit a5b0ae8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/cellular_pkthandler.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ static CellularPktStatus_t _Cellular_DataSendWithTimeoutDelayRaw( CellularContex
7272
uint32_t interDelayMS );
7373
static void _Cellular_PktHandlerAcquirePktRequestMutex( CellularContext_t * pContext );
7474
static void _Cellular_PktHandlerReleasePktRequestMutex( CellularContext_t * pContext );
75-
static int32_t _searchCompareFunc( const void * pInputToken,
76-
const void * pBase );
75+
static int _searchCompareFunc( const void * pInputToken,
76+
const void * pBase );
7777
static int32_t _sortCompareFunc( const void * pElem1Ptr,
7878
const void * pElem2Ptr );
7979
static void _Cellular_ProcessGenericUrc( const CellularContext_t * pContext,
@@ -354,10 +354,10 @@ static void _Cellular_PktHandlerReleasePktRequestMutex( CellularContext_t * pCon
354354

355355
/*-----------------------------------------------------------*/
356356

357-
static int32_t _searchCompareFunc( const void * pInputToken,
358-
const void * pBase )
357+
static int _searchCompareFunc( const void * pInputToken,
358+
const void * pBase )
359359
{
360-
int32_t compareValue = 0;
360+
int compareValue = 0;
361361
const char * pToken = ( const char * ) pInputToken;
362362
const CellularAtParseTokenMap_t * pBasePtr = ( const CellularAtParseTokenMap_t * ) pBase;
363363
uint32_t tokenLen = ( uint32_t ) strlen( pInputToken );

0 commit comments

Comments
 (0)