fix signed mismatch compiler diagnostic

r2427 | dcl | 2008-04-14 09:46:32 +1000 (Mon, 14 Apr 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-04-14 09:46:32 +10:00
parent cc845c6723
commit d34b441f14
3 changed files with 10 additions and 8 deletions

View File

@@ -170,7 +170,7 @@ CreateSocketAdress(
int iRet;
fd_set lMask;
struct timeval tmo = {1,0};
int iLen, i;
unsigned int iLen, i;
struct linger lili;
assert(self != NULL);
@@ -378,7 +378,7 @@ CreateSocketAdress(
{
int t;
int len;
unsigned int len;
struct sockaddr_in sin;
struct hostent *host;
@@ -773,7 +773,7 @@ int NETReconnect(mkChannel* self)
i = 1;
setsockopt(pRes->sockid,SOL_SOCKET,SO_REUSEADDR,&i,sizeof(int));
assert(pRes->sockid < (sizeof(long)*8));
assert(pRes->sockid < (int)(sizeof(long)*8));
/* if this fails the masks for select will be to
short.
*/
@@ -855,7 +855,7 @@ int NETReconnect(mkChannel* self)
long lMask = 0L;
struct timeval tmo ={0,1};
long iRet;
int iLang;
unsigned int iLang;
if(!VerifyChannel(self))
{