changeset 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 db32fee4fa69
files src/conversation.c
diffstat 1 files changed, 7 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu Aug 07 00:46:13 2003 +0000
+++ b/src/conversation.c	Thu Aug 07 00:47:58 2003 +0000
@@ -348,14 +348,12 @@
 					strncpy(bigbuf + offset, "</BINARY>",
 							strlen("<BINARY>") + 1);
 
-					err = serv_send_im(gc,
-						(char *)gaim_conversation_get_name(conv),
-						bigbuf, length, imflags);
+					err = serv_send_im(gc, gaim_conversation_get_name(conv),
+									   bigbuf, length, imflags);
 				}
 				else
-					err = serv_send_im(gc,
-						(char *)gaim_conversation_get_name(conv),
-						buffy, -1, imflags);
+					err = serv_send_im(gc, gaim_conversation_get_name(conv),
+									   buffy, -1, imflags);
 
 				if (err > 0) {
 					GSList *tempy;
@@ -382,7 +380,7 @@
 					g_free(bigbuf);
 			}
 			else {
-				err = serv_send_im(gc, (char *)gaim_conversation_get_name(conv),
+				err = serv_send_im(gc, gaim_conversation_get_name(conv),
 								   buffy, -1, imflags);
 
 				if (err > 0)
@@ -425,7 +423,6 @@
 			}
 		}
 	}
-
 }
 
 static void
@@ -960,10 +957,10 @@
 
 		if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {
 			if (gaim_prefs_get_bool("/core/conversations/im/send_typing"))
-				serv_send_typing(gc, (char *)name, GAIM_NOT_TYPING);
+				serv_send_typing(gc, name, GAIM_NOT_TYPING);
 
 			if (gc && prpl_info->convo_closed != NULL)
-				prpl_info->convo_closed(gc, (char *)name);
+				prpl_info->convo_closed(gc, name);
 		}
 		else if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT) {
 			/*