Mercurial > pidgin
diff src/upnp.c @ 11586:03cd74ca2562
[gaim-migrate @ 13856]
clean up some compile warnings
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 02 Oct 2005 16:50:08 +0000 |
parents | 7897207b522d |
children | f9c5480ad0ce |
line wrap: on
line diff
--- a/src/upnp.c Sun Oct 02 05:58:51 2005 +0000 +++ b/src/upnp.c Sun Oct 02 16:50:08 2005 +0000 @@ -95,7 +95,7 @@ "\"urn:schemas-upnp-org:" \ "service:%s#%s\"\r\n" \ "CONTENT-TYPE: text/xml ; charset=\"utf-8\"\r\n"\ - "Content-Length: %i\r\n\r\n" + "Content-Length: %zi\r\n\r\n" #define SOAP_ACTION "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" \ "<s:Envelope xmlns:s=" \ @@ -205,13 +205,13 @@ gint sock, GaimInputCondition cond) { - int sizeSent, totalSizeSent = 0; + gsize sizeSent, totalSizeSent = 0; extern int errno; NetResponseData* nrd = data; gaim_timeout_remove(nrd->tima); while(totalSizeSent < strlen(nrd->sendBuffer)) { - sizeSent = send(sock,(gchar*)((int)nrd->sendBuffer+totalSizeSent), + sizeSent = send(sock,(gchar*)(nrd->sendBuffer+totalSizeSent), strlen(nrd->sendBuffer)-totalSizeSent,0); if(sizeSent <= 0 && errno != EINTR) { gaim_debug_error("upnp",