Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4763:c050edba7b83
[gaim-migrate @ 5081]
Yeah... I dunno. I guess this is some kind of improvement.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 14 Mar 2003 06:13:48 +0000 |
parents | d3afaf6ce177 |
children | 03aa36cb4e38 |
comparison
equal
deleted
inserted
replaced
4762:d3afaf6ce177 | 4763:c050edba7b83 |
---|---|
831 } | 831 } |
832 | 832 |
833 static void | 833 static void |
834 oscar_xfer_cancel_send(struct gaim_xfer *xfer) | 834 oscar_xfer_cancel_send(struct gaim_xfer *xfer) |
835 { | 835 { |
836 struct gaim_connection *gc; | |
837 struct oscar_data *od; | |
838 struct oscar_xfer_data *xfer_data; | |
839 aim_conn_t *conn; | |
840 | |
841 debug_printf("AAA - in oscar_xfer_cancel_send\n"); | |
842 if (!(xfer_data = xfer->data)) | |
843 return; | |
844 | |
845 if ((conn = xfer_data->conn)) { | |
846 aim_session_t *sess; | |
847 if ((sess = conn->sessv)) | |
848 if (xfer_data->cookie && xfer->who) | |
849 aim_im_sendch2_sendfile_cancel(sess, xfer_data->cookie, xfer->who, AIM_CAPS_SENDFILE); | |
850 } | |
851 | |
852 g_free(xfer_data->clientip); | |
853 g_free(xfer_data->clientip2); | |
854 | |
855 if ((gc = xfer_data->gc)) | |
856 if ((od = gc->proto_data)) | |
857 od->file_transfers = g_slist_remove(od->file_transfers, xfer); | |
858 | |
859 g_free(xfer_data); | |
860 xfer->data = NULL; | |
836 } | 861 } |
837 | 862 |
838 static void | 863 static void |
839 oscar_xfer_cancel_recv(struct gaim_xfer *xfer) | 864 oscar_xfer_cancel_recv(struct gaim_xfer *xfer) |
840 { | 865 { |
841 struct gaim_connection *gc; | 866 struct gaim_connection *gc; |
842 struct oscar_data *od; | 867 struct oscar_data *od; |
843 struct oscar_xfer_data *xfer_data; | 868 struct oscar_xfer_data *xfer_data; |
844 aim_conn_t *conn; | 869 aim_conn_t *conn; |
845 | 870 |
846 debug_printf("AAA - in oscar_xfer_cancel\n"); | 871 debug_printf("AAA - in oscar_xfer_cancel_recv\n"); |
847 if (!(xfer_data = xfer->data)) | 872 if (!(xfer_data = xfer->data)) |
848 return; | 873 return; |
849 | 874 |
850 if ((conn = xfer_data->conn)) { | 875 if ((conn = xfer_data->conn)) { |
851 aim_session_t *sess; | 876 aim_session_t *sess; |