changeset 6402:cc35d07a0dcc

[gaim-migrate @ 6907] g_malloc0() -> g_new0() committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 07 Aug 2003 00:46:13 +0000
parents 6443491fa59d
children 01963a303f43
files src/conversation.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Thu Aug 07 00:44:04 2003 +0000
+++ b/src/conversation.c	Thu Aug 07 00:46:13 2003 +0000
@@ -166,8 +166,7 @@
 	if (conv != NULL && gc != NULL && name != NULL) {
 		gaim_im_set_type_again(GAIM_IM(conv), TRUE);
 
-		/* XXX Somebody add const stuff! */
-		serv_send_typing(gc, (char *)name, GAIM_TYPED);
+		serv_send_typing(gc, name, GAIM_TYPED);
 
 		gaim_debug(GAIM_DEBUG_MISC, "conversation", "typed...\n");
 	}
@@ -450,7 +449,7 @@
 {
 	GaimWindow *win;
 
-	win = g_malloc0(sizeof(GaimWindow));
+	win = g_new0(GaimWindow, 1);
 
 	windows = g_list_append(windows, win);
 
@@ -873,7 +872,7 @@
 	if ((conv = gaim_find_conversation_with_account(name, account)) != NULL)
 		return conv;
 
-	conv = g_malloc0(sizeof(GaimConversation));
+	conv = g_new0(GaimConversation, 1);
 
 	conv->type         = type;
 	conv->account      = account;
@@ -886,7 +885,7 @@
 
 	if (type == GAIM_CONV_IM)
 	{
-		conv->u.im = g_malloc0(sizeof(GaimIm));
+		conv->u.im = g_new0(GaimIm, 1);
 		conv->u.im->conv = conv;
 
 		ims = g_list_append(ims, conv);
@@ -896,7 +895,7 @@
 	}
 	else if (type == GAIM_CONV_CHAT)
 	{
-		conv->u.chat = g_malloc0(sizeof(GaimChat));
+		conv->u.chat = g_new0(GaimChat, 1);
 		conv->u.chat->conv = conv;
 
 		chats = g_list_append(chats, conv);