Mercurial > pidgin.yaz
changeset 19398:39248f5b53ad
Input handlers are unsigned integers. So set them to 0 instead of -1 after
removing it.
This is a semi-Dj vu of 979d5b68c76417625271f63b5c4fcff37ec38019
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 24 Aug 2007 02:50:55 +0000 |
parents | baa10a1f2bd3 |
children | 649ac48fce1d |
files | libpurple/protocols/msn/servconn.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.c Fri Aug 24 00:57:24 2007 +0000 +++ b/libpurple/protocols/msn/servconn.c Fri Aug 24 02:50:55 2007 +0000 @@ -51,7 +51,7 @@ servconn->num = session->servconns_count++; servconn->tx_buf = purple_circ_buffer_new(MSN_BUF_LEN); - servconn->tx_handler = -1; + servconn->tx_handler = 0; return servconn; } @@ -303,7 +303,7 @@ if (writelen == 0) { purple_input_remove(servconn->tx_handler); - servconn->tx_handler = -1; + servconn->tx_handler = 0; return; } @@ -328,7 +328,7 @@ if (!servconn->session->http_method) { - if (servconn->tx_handler == -1) { + if (servconn->tx_handler == 0) { switch (servconn->type) { case MSN_SERVCONN_NS: @@ -353,7 +353,7 @@ if (ret < 0 && errno == EAGAIN) ret = 0; if (ret >= 0 && ret < len) { - if (servconn->tx_handler == -1) + if (servconn->tx_handler == 0) servconn->tx_handler = purple_input_add( servconn->fd, PURPLE_INPUT_WRITE, servconn_write_cb, servconn);