Mercurial > pidgin.yaz
comparison src/conversation.c @ 6403:01963a303f43
[gaim-migrate @ 6908]
Removed now unnecessary casts from const char * to char *, since those API
functions now take const char *.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 07 Aug 2003 00:47:58 +0000 |
parents | cc35d07a0dcc |
children | 96de6d9eb422 |
comparison
equal
deleted
inserted
replaced
6402:cc35d07a0dcc | 6403:01963a303f43 |
---|---|
346 | 346 |
347 if (binary) { | 347 if (binary) { |
348 strncpy(bigbuf + offset, "</BINARY>", | 348 strncpy(bigbuf + offset, "</BINARY>", |
349 strlen("<BINARY>") + 1); | 349 strlen("<BINARY>") + 1); |
350 | 350 |
351 err = serv_send_im(gc, | 351 err = serv_send_im(gc, gaim_conversation_get_name(conv), |
352 (char *)gaim_conversation_get_name(conv), | 352 bigbuf, length, imflags); |
353 bigbuf, length, imflags); | |
354 } | 353 } |
355 else | 354 else |
356 err = serv_send_im(gc, | 355 err = serv_send_im(gc, gaim_conversation_get_name(conv), |
357 (char *)gaim_conversation_get_name(conv), | 356 buffy, -1, imflags); |
358 buffy, -1, imflags); | |
359 | 357 |
360 if (err > 0) { | 358 if (err > 0) { |
361 GSList *tempy; | 359 GSList *tempy; |
362 | 360 |
363 for (tempy = conv->u.im->images; | 361 for (tempy = conv->u.im->images; |
380 | 378 |
381 if (binary) | 379 if (binary) |
382 g_free(bigbuf); | 380 g_free(bigbuf); |
383 } | 381 } |
384 else { | 382 else { |
385 err = serv_send_im(gc, (char *)gaim_conversation_get_name(conv), | 383 err = serv_send_im(gc, gaim_conversation_get_name(conv), |
386 buffy, -1, imflags); | 384 buffy, -1, imflags); |
387 | 385 |
388 if (err > 0) | 386 if (err > 0) |
389 gaim_im_write(im, NULL, buf, -1, WFLAG_SEND, time(NULL)); | 387 gaim_im_write(im, NULL, buf, -1, WFLAG_SEND, time(NULL)); |
390 } | 388 } |
423 else if (gc->away) { | 421 else if (gc->away) { |
424 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); | 422 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); |
425 } | 423 } |
426 } | 424 } |
427 } | 425 } |
428 | |
429 } | 426 } |
430 | 427 |
431 static void | 428 static void |
432 update_conv_indexes(GaimWindow *win) | 429 update_conv_indexes(GaimWindow *win) |
433 { | 430 { |
958 /* Still connected */ | 955 /* Still connected */ |
959 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 956 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
960 | 957 |
961 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 958 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
962 if (gaim_prefs_get_bool("/core/conversations/im/send_typing")) | 959 if (gaim_prefs_get_bool("/core/conversations/im/send_typing")) |
963 serv_send_typing(gc, (char *)name, GAIM_NOT_TYPING); | 960 serv_send_typing(gc, name, GAIM_NOT_TYPING); |
964 | 961 |
965 if (gc && prpl_info->convo_closed != NULL) | 962 if (gc && prpl_info->convo_closed != NULL) |
966 prpl_info->convo_closed(gc, (char *)name); | 963 prpl_info->convo_closed(gc, name); |
967 } | 964 } |
968 else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { | 965 else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) { |
969 /* | 966 /* |
970 * This is unfortunately necessary, because calling | 967 * This is unfortunately necessary, because calling |
971 * serv_chat_leave() calls this gaim_conversation_destroy(), | 968 * serv_chat_leave() calls this gaim_conversation_destroy(), |