Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
11585:46265a317bd3 | 11586:03cd74ca2562 |
---|---|
93 "HOST: %s\r\n" \ | 93 "HOST: %s\r\n" \ |
94 "SOAPACTION: " \ | 94 "SOAPACTION: " \ |
95 "\"urn:schemas-upnp-org:" \ | 95 "\"urn:schemas-upnp-org:" \ |
96 "service:%s#%s\"\r\n" \ | 96 "service:%s#%s\"\r\n" \ |
97 "CONTENT-TYPE: text/xml ; charset=\"utf-8\"\r\n"\ | 97 "CONTENT-TYPE: text/xml ; charset=\"utf-8\"\r\n"\ |
98 "Content-Length: %i\r\n\r\n" | 98 "Content-Length: %zi\r\n\r\n" |
99 | 99 |
100 #define SOAP_ACTION "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" \ | 100 #define SOAP_ACTION "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n" \ |
101 "<s:Envelope xmlns:s=" \ | 101 "<s:Envelope xmlns:s=" \ |
102 "\"http://schemas.xmlsoap.org/soap/envelope/\" " \ | 102 "\"http://schemas.xmlsoap.org/soap/envelope/\" " \ |
103 "s:encodingStyle=" \ | 103 "s:encodingStyle=" \ |
203 static void | 203 static void |
204 gaim_upnp_http_send(gpointer data, | 204 gaim_upnp_http_send(gpointer data, |
205 gint sock, | 205 gint sock, |
206 GaimInputCondition cond) | 206 GaimInputCondition cond) |
207 { | 207 { |
208 int sizeSent, totalSizeSent = 0; | 208 gsize sizeSent, totalSizeSent = 0; |
209 extern int errno; | 209 extern int errno; |
210 NetResponseData* nrd = data; | 210 NetResponseData* nrd = data; |
211 | 211 |
212 gaim_timeout_remove(nrd->tima); | 212 gaim_timeout_remove(nrd->tima); |
213 while(totalSizeSent < strlen(nrd->sendBuffer)) { | 213 while(totalSizeSent < strlen(nrd->sendBuffer)) { |
214 sizeSent = send(sock,(gchar*)((int)nrd->sendBuffer+totalSizeSent), | 214 sizeSent = send(sock,(gchar*)(nrd->sendBuffer+totalSizeSent), |
215 strlen(nrd->sendBuffer)-totalSizeSent,0); | 215 strlen(nrd->sendBuffer)-totalSizeSent,0); |
216 if(sizeSent <= 0 && errno != EINTR) { | 216 if(sizeSent <= 0 && errno != EINTR) { |
217 gaim_debug_error("upnp", | 217 gaim_debug_error("upnp", |
218 "gaim_upnp_http_request(): Failed In send\n\n"); | 218 "gaim_upnp_http_request(): Failed In send\n\n"); |
219 nrd->done = TRUE; | 219 nrd->done = TRUE; |