Mercurial > pidgin.yaz
diff libpurple/protocols/irc/dcc_send.c @ 32794:1f56d5102483
IRC: Use file-transfer accessor function.
s
| author | andrew.victor@mxit.com |
|---|---|
| date | Sun, 30 Oct 2011 15:47:29 +0000 |
| parents | 89fa8261e241 |
| children |
line wrap: on
line diff
--- a/libpurple/protocols/irc/dcc_send.c Sun Oct 30 15:46:31 2011 +0000 +++ b/libpurple/protocols/irc/dcc_send.c Sun Oct 30 15:47:29 2011 +0000 @@ -258,8 +258,8 @@ return; } - purple_input_remove(xfer->watcher); - xfer->watcher = 0; + purple_input_remove(purple_xfer_get_watcher(xfer)); + purple_xfer_set_watcher(xfer, 0); close(xd->fd); xd->fd = -1; @@ -313,8 +313,8 @@ port = purple_network_get_port_from_fd(sock); purple_debug_misc("irc", "port is %hu\n", port); /* Monitor the listening socket */ - xfer->watcher = purple_input_add(sock, PURPLE_INPUT_READ, - irc_dccsend_send_connected, xfer); + purple_xfer_set_watcher(xfer, purple_input_add(sock, PURPLE_INPUT_READ, + irc_dccsend_send_connected, xfer)); /* Send the intended recipient the DCC request */ arg[0] = purple_xfer_get_remote_user(xfer);
