Mercurial > pidgin.yaz
comparison libpurple/protocols/gg/lib/http.c @ 32764:ef01f180114b
Gadu-Gadu: synchronize internal libgadu with upstream. Refs #343
author | tomkiewicz@cpw.pidgin.im |
---|---|
date | Tue, 18 Oct 2011 00:55:59 +0000 |
parents | 3a90a59ddea2 |
children | e2ff2ac0e022 |
comparison
equal
deleted
inserted
replaced
32763:326591e64aaa | 32764:ef01f180114b |
---|---|
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 } |