Mercurial > pidgin
comparison libgaim/protocols/qq/im.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 | 3c58357772a2 |
children | 108152f29f37 |
comparison
equal
deleted
inserted
replaced
14628:58202142e9ad | 14629:6b8bc59414f0 |
---|---|
250 gchar *msg_with_gaim_smiley; | 250 gchar *msg_with_gaim_smiley; |
251 gchar *msg_utf8_encoded; | 251 gchar *msg_utf8_encoded; |
252 qq_data *qd; | 252 qq_data *qd; |
253 qq_recv_normal_im_text *im_text; | 253 qq_recv_normal_im_text *im_text; |
254 | 254 |
255 g_return_if_fail(gc != NULL && gc->proto_data != NULL && common != NULL); | 255 g_return_if_fail(common != NULL); |
256 qd = (qq_data *) gc->proto_data; | 256 qd = (qq_data *) gc->proto_data; |
257 | 257 |
258 /* now it is QQ_NORMAL_IM_TEXT */ | 258 /* now it is QQ_NORMAL_IM_TEXT */ |
259 if (*cursor >= (data + len - 1)) { | 259 if (*cursor >= (data + len - 1)) { |
260 gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Received normal IM text is empty\n"); | 260 gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Received normal IM text is empty\n"); |
400 { | 400 { |
401 gint len; | 401 gint len; |
402 guint8 reply; | 402 guint8 reply; |
403 gchar **segments, *msg_utf8; | 403 gchar **segments, *msg_utf8; |
404 | 404 |
405 g_return_if_fail(gc != NULL && data != NULL && data_len != 0); | 405 g_return_if_fail(data != NULL && data_len != 0); |
406 | 406 |
407 if (*cursor >= (data + data_len - 1)) { | 407 if (*cursor >= (data + data_len - 1)) { |
408 gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Received sys IM is empty\n"); | 408 gaim_debug(GAIM_DEBUG_WARNING, "QQ", "Received sys IM is empty\n"); |
409 return; | 409 return; |
410 } | 410 } |
432 gchar *msg_filtered; | 432 gchar *msg_filtered; |
433 GData *attribs; | 433 GData *attribs; |
434 gchar *font_size = NULL, *font_color = NULL, *font_name = NULL, *tmp; | 434 gchar *font_size = NULL, *font_color = NULL, *font_name = NULL, *tmp; |
435 gboolean is_bold = FALSE, is_italic = FALSE, is_underline = FALSE; | 435 gboolean is_bold = FALSE, is_italic = FALSE, is_underline = FALSE; |
436 const gchar *start, *end, *last; | 436 const gchar *start, *end, *last; |
437 | |
438 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
439 | 437 |
440 qd = (qq_data *) gc->proto_data; | 438 qd = (qq_data *) gc->proto_data; |
441 client_tag = QQ_CLIENT; | 439 client_tag = QQ_CLIENT; |
442 normal_im_type = QQ_NORMAL_IM_TEXT; | 440 normal_im_type = QQ_NORMAL_IM_TEXT; |
443 | 441 |
552 { | 550 { |
553 qq_data *qd; | 551 qq_data *qd; |
554 gint len; | 552 gint len; |
555 guint8 *data, *cursor, reply; | 553 guint8 *data, *cursor, reply; |
556 | 554 |
557 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
558 g_return_if_fail(buf != NULL && buf_len != 0); | 555 g_return_if_fail(buf != NULL && buf_len != 0); |
559 | 556 |
560 qd = gc->proto_data; | 557 qd = gc->proto_data; |
561 len = buf_len; | 558 len = buf_len; |
562 data = g_newa(guint8, len); | 559 data = g_newa(guint8, len); |
582 qq_data *qd; | 579 qq_data *qd; |
583 gint len, bytes; | 580 gint len, bytes; |
584 guint8 *data, *cursor; | 581 guint8 *data, *cursor; |
585 qq_recv_im_header *im_header; | 582 qq_recv_im_header *im_header; |
586 | 583 |
587 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | |
588 g_return_if_fail(buf != NULL && buf_len != 0); | 584 g_return_if_fail(buf != NULL && buf_len != 0); |
589 | 585 |
590 qd = (qq_data *) gc->proto_data; | 586 qd = (qq_data *) gc->proto_data; |
591 len = buf_len; | 587 len = buf_len; |
592 data = g_newa(guint8, len); | 588 data = g_newa(guint8, len); |