Mercurial > pidgin.yaz
comparison libgaim/protocols/qq/file_trans.c @ 14629:6b8bc59414f0
[gaim-migrate @ 17375]
Get rid of these useless checks.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Tue, 26 Sep 2006 22:54:24 +0000 |
parents | 85f3808ca472 |
children | 108152f29f37 |
comparison
equal
deleted
inserted
replaced
14628:58202142e9ad | 14629:6b8bc59414f0 |
---|---|
254 guint8 *cursor, *buf; | 254 guint8 *cursor, *buf; |
255 guint32 file_key; | 255 guint32 file_key; |
256 qq_data *qd; | 256 qq_data *qd; |
257 ft_info *info; | 257 ft_info *info; |
258 | 258 |
259 g_return_val_if_fail(gc != NULL && gc->proto_data != NULL, -1); | |
260 qd = (qq_data *) gc->proto_data; | 259 qd = (qq_data *) gc->proto_data; |
261 g_return_val_if_fail(qd != NULL && qd->session_key != NULL, -1); | 260 g_return_val_if_fail(qd->session_key != NULL, -1); |
262 info = (ft_info *) qd->xfer->data; | 261 info = (ft_info *) qd->xfer->data; |
263 bytes = 0; | 262 bytes = 0; |
264 | 263 |
265 buf = g_newa(guint8, MAX_PACKET_SIZE); | 264 buf = g_newa(guint8, MAX_PACKET_SIZE); |
266 cursor = buf; | 265 cursor = buf; |
287 gint bytes, bytes_expected, encrypted_len; | 286 gint bytes, bytes_expected, encrypted_len; |
288 guint8 *raw_data, *cursor, *encrypted_data, *md5; | 287 guint8 *raw_data, *cursor, *encrypted_data, *md5; |
289 time_t now; | 288 time_t now; |
290 ft_info *info; | 289 ft_info *info; |
291 | 290 |
292 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
293 qd = (qq_data *) gc->proto_data; | 291 qd = (qq_data *) gc->proto_data; |
294 info = (ft_info *) qd->xfer->data; | 292 info = (ft_info *) qd->xfer->data; |
295 | 293 |
296 raw_data = g_new0 (guint8, 61); | 294 raw_data = g_new0 (guint8, 61); |
297 cursor = raw_data; | 295 cursor = raw_data; |
393 gchar *filename; | 391 gchar *filename; |
394 gint filename_len, filesize; | 392 gint filename_len, filesize; |
395 qq_data *qd; | 393 qq_data *qd; |
396 ft_info *info; | 394 ft_info *info; |
397 | 395 |
398 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
399 qd = (qq_data *) gc->proto_data; | 396 qd = (qq_data *) gc->proto_data; |
400 info = (ft_info *) qd->xfer->data; | 397 info = (ft_info *) qd->xfer->data; |
401 | 398 |
402 filename = (gchar *) gaim_xfer_get_filename(qd->xfer); | 399 filename = (gchar *) gaim_xfer_get_filename(qd->xfer); |
403 filesize = gaim_xfer_get_size(qd->xfer); | 400 filesize = gaim_xfer_get_size(qd->xfer); |
818 { | 815 { |
819 guint8 *cursor; | 816 guint8 *cursor; |
820 qq_file_header fh; | 817 qq_file_header fh; |
821 qq_data *qd; | 818 qq_data *qd; |
822 | 819 |
823 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
824 qd = (qq_data *) gc->proto_data; | 820 qd = (qq_data *) gc->proto_data; |
825 | 821 |
826 cursor = data; | 822 cursor = data; |
827 _qq_get_file_header(data, &cursor, len, &fh); | 823 _qq_get_file_header(data, &cursor, len, &fh); |
828 | 824 |