# HG changeset patch # User Christian Hammond # Date 1060217173 0 # Node ID cc35d07a0dccd5ce3cb41dced3d1ca354f488995 # Parent 6443491fa59d00b51635e8e04799bc9d091ed1a8 [gaim-migrate @ 6907] g_malloc0() -> g_new0() committer: Tailor Script diff -r 6443491fa59d -r cc35d07a0dcc src/conversation.c --- 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);