# HG changeset patch # User Sadrul Habib Chowdhury # Date 1187923855 0 # Node ID 39248f5b53adac6090987b24c8a39a3ef45a9d78 # Parent baa10a1f2bd3345ddd40a4d3b1332119ee812206 Input handlers are unsigned integers. So set them to 0 instead of -1 after removing it. This is a semi-Dj vu of 979d5b68c76417625271f63b5c4fcff37ec38019 diff -r baa10a1f2bd3 -r 39248f5b53ad libpurple/protocols/msn/servconn.c --- 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);