libpurple/protocols/gg/lib/http.c

changeset 32675
a8ba546a18bc
parent 31826
0f6ab56fbf9d
child 32688
9e137d441acd
equal deleted inserted replaced
32674:2de7f0cebb8b 32675:a8ba546a18bc
256 256
257 h->state = GG_STATE_SENDING_QUERY; 257 h->state = GG_STATE_SENDING_QUERY;
258 } 258 }
259 259
260 if (h->state == GG_STATE_SENDING_QUERY) { 260 if (h->state == GG_STATE_SENDING_QUERY) {
261 size_t res; 261 ssize_t res;
262 262
263 if ((res = write(h->fd, h->query, strlen(h->query))) < 1) { 263 if ((res = write(h->fd, h->query, strlen(h->query))) < 1) {
264 gg_debug(GG_DEBUG_MISC, "=> http, write() failed (len=%d, res=%d, errno=%d)\n", strlen(h->query), res, errno); 264 gg_debug(GG_DEBUG_MISC, "=> http, write() failed (len=%d, res=%d, errno=%d)\n", strlen(h->query), res, errno);
265 gg_http_error(GG_ERROR_WRITING); 265 gg_http_error(GG_ERROR_WRITING);
266 } 266 }

mercurial