Mercurial > pidgin.yaz
diff src/protocols/toc/toc.c @ 3867:43e396e94095
[gaim-migrate @ 4019]
compile cleanups by nathan
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sun, 03 Nov 2002 07:36:09 +0000 |
parents | a20bf3d247ff |
children | ee884f1d7ae3 |
line wrap: on
line diff
--- a/src/protocols/toc/toc.c Sun Nov 03 07:32:07 2002 +0000 +++ b/src/protocols/toc/toc.c Sun Nov 03 07:36:09 2002 +0000 @@ -1101,7 +1101,7 @@ toc_set_config(g); } -static void toc_remove_buddies(struct gaim_connection *g, GList *buddies, char *group) +static void toc_remove_buddies(struct gaim_connection *g, GList *buddies, const char *group) { char buf[BUF_LEN * 2]; int n; @@ -1919,6 +1919,17 @@ } } +static void toc_reject_ft(struct ft_request *ft) { + g_free(ft->user); + g_free(ft->filename); + g_free(ft->ip); + g_free(ft->cookie); + if (ft->message) + g_free(ft->message); + g_free(ft); +} + + static void toc_accept_ft(struct ft_request *fr) { GtkWidget *window; char buf[BUF_LEN]; @@ -1947,17 +1958,7 @@ GTK_SIGNAL_FUNC(toc_get_file), ft); gtk_widget_show(window); - toc_reject_ft(ft); -} - -static void toc_reject_ft(struct ft_request *ft) { - g_free(ft->user); - g_free(ft->filename); - g_free(ft->ip); - g_free(ft->cookie); - if (ft->message) - g_free(ft->message); - g_free(ft); + toc_reject_ft(fr); } static void accept_file_dialog(struct ft_request *ft) {