diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 6875b9cedb..ac0d8985df 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2010-10-21 14:10 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + * harbour/src/rtl/hbnsctp.c + * added type casting and local variable initialization to make some + compilers happy + 2010-10-21 03:18 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/contrib/hbmysql/hbmysql.hbp * harbour/contrib/sddmy/sddmy.hbp diff --git a/harbour/src/rtl/hbnsctp.c b/harbour/src/rtl/hbnsctp.c index b448111059..b414c6b64c 100644 --- a/harbour/src/rtl/hbnsctp.c +++ b/harbour/src/rtl/hbnsctp.c @@ -95,12 +95,12 @@ int hb_nsctpError( PHB_NSCTP pSocket ) HB_BOOL hb_nsctpSend( PHB_NSCTP pSocket, const void * data, HB_SIZE len, HB_MAXINT timeout ) { - HB_MAXINT nTime; + HB_MAXINT nTime = 0; long lSend; if( ! pSocket->pSendBuffer ) { - pSocket->pSendBuffer = hb_xgrab( len + 4 ); + pSocket->pSendBuffer = ( char * ) hb_xgrab( len + 4 ); HB_PUT_LE_UINT32( pSocket->pSendBuffer, len ); hb_xmemcpy( pSocket->pSendBuffer + 4, data, len ); pSocket->nSendLen = len + 4; @@ -143,12 +143,12 @@ HB_BOOL hb_nsctpSend( PHB_NSCTP pSocket, const void * data, HB_SIZE len, HB_MAXI HB_BOOL hb_nsctpRecv( PHB_NSCTP pSocket, void ** data, HB_SIZE * len, HB_MAXINT timeout ) { - HB_MAXINT nTime; + HB_MAXINT nTime = 0; long lRecv; if( ! pSocket->pRecvBuffer ) { - pSocket->pRecvBuffer = hb_xgrab( 4 ); + pSocket->pRecvBuffer = ( char * ) hb_xgrab( 4 ); pSocket->nRecvLen = 0; pSocket->fRecvHasSize = HB_FALSE; } @@ -195,7 +195,7 @@ HB_BOOL hb_nsctpRecv( PHB_NSCTP pSocket, void ** data, HB_SIZE * len, HB_MAXINT pSocket->nRecvLen = 0; pSocket->fRecvHasSize = HB_TRUE; if( pSocket->nRecvSize != 4 ) - pSocket->pRecvBuffer = hb_xrealloc( pSocket->pRecvBuffer, pSocket->nRecvSize ); + pSocket->pRecvBuffer = ( char * ) hb_xrealloc( pSocket->pRecvBuffer, pSocket->nRecvSize ); } if( pSocket->nRecvSize - pSocket->nRecvLen < ( HB_SIZE ) LONG_MAX )