Mercurial > pidgin
comparison libpurple/protocols/qq/file_trans.c @ 30430:351d07aefb09
Kill off many dead assignments and any useless remaining variables.
I think some of those QQ ones were actual logic errors, too.
Let me know if there were any side-effects that were cut.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 23 Aug 2010 00:52:24 +0000 |
parents | 9ab9e5f1eec2 |
children | de168bbf1e43 |
comparison
equal
deleted
inserted
replaced
30429:922c8c553758 | 30430:351d07aefb09 |
---|---|
236 { | 236 { |
237 guint8 *raw_data; | 237 guint8 *raw_data; |
238 gint bytes = 0; | 238 gint bytes = 0; |
239 guint32 file_key; | 239 guint32 file_key; |
240 qq_data *qd; | 240 qq_data *qd; |
241 ft_info *info; | |
242 | 241 |
243 qd = (qq_data *) gc->proto_data; | 242 qd = (qq_data *) gc->proto_data; |
244 | |
245 info = (ft_info *) qd->xfer->data; | |
246 | 243 |
247 raw_data = g_newa(guint8, MAX_PACKET_SIZE); | 244 raw_data = g_newa(guint8, MAX_PACKET_SIZE); |
248 file_key = _gen_file_key(); | 245 file_key = _gen_file_key(); |
249 | 246 |
250 bytes += qq_put8(raw_data + bytes, packet_type); | 247 bytes += qq_put8(raw_data + bytes, packet_type); |
803 | 800 |
804 void qq_process_recv_file(PurpleConnection *gc, guint8 *data, gint len) | 801 void qq_process_recv_file(PurpleConnection *gc, guint8 *data, gint len) |
805 { | 802 { |
806 gint bytes; | 803 gint bytes; |
807 guint8 tag; | 804 guint8 tag; |
808 qq_data *qd; | |
809 | |
810 qd = (qq_data *) gc->proto_data; | |
811 | 805 |
812 bytes = 0; | 806 bytes = 0; |
813 bytes += qq_get8(&tag, data + bytes); | 807 bytes += qq_get8(&tag, data + bytes); |
814 | 808 |
815 switch (tag) { | 809 switch (tag) { |