Mercurial > pidgin
changeset 12207:201be1b681a4
[gaim-migrate @ 14509]
Warning fixes.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 24 Nov 2005 02:18:05 +0000 |
parents | d345299ff3bc |
children | ddcd92a32eeb |
files | src/upnp.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/upnp.c Thu Nov 24 02:09:28 2005 +0000 +++ b/src/upnp.c Thu Nov 24 02:18:05 2005 +0000 @@ -159,7 +159,6 @@ GaimInputCondition cond) { int sizeRecv; - extern int errno; NetResponseData* nrd = data; sizeRecv = recv(sock, &(nrd->recvBuffer[nrd->totalSizeRecv]), @@ -206,7 +205,6 @@ GaimInputCondition cond) { gsize sizeSent, totalSizeSent = 0; - extern int errno; NetResponseData* nrd = data; gaim_timeout_remove(nrd->tima); @@ -567,7 +565,6 @@ GaimInputCondition cond) { unsigned int length; - extern int errno; struct sockaddr_in from; int sizeRecv; NetResponseData* nrd = data; @@ -600,13 +597,13 @@ { /* Socket Setup Variables */ int sock, i; - extern int errno; struct sockaddr_in server; struct hostent* hp; /* UDP SEND VARIABLES */ gboolean sentSuccess, recvSuccess; - int sizeSent, totalSizeSent; + ssize_t sizeSent; + ssize_t totalSizeSent; gchar wanIP[] = "WANIPConnection:1"; gchar wanPPP[] = "WANPPPConnection:1"; gchar* serviceToUse; @@ -667,7 +664,7 @@ nrd->recvBuffer = (char*)g_malloc(MAX_DISCOVERY_RECEIVE_SIZE); - while(totalSizeSent < strlen(sendMessage)) { + while(totalSizeSent < (ssize_t)strlen(sendMessage)) { sizeSent = sendto(sock,(void*)&sendMessage[totalSizeSent], strlen(&sendMessage[totalSizeSent]),0, (struct sockaddr*)&server,