# HG changeset patch # User Rob Flynn # Date 976843384 0 # Node ID 87ad345a6d4f7f7120bab74a0e556081cfc5f0b5 # Parent 577b71ae4e2a62aa8dc3f96315f50d0fe31529b9 [gaim-migrate @ 1293] Sometimes I smoke too much crack, Mmmkay. committer: Tailor Script diff -r 577b71ae4e2a -r 87ad345a6d4f plugins/msn/msn.c --- a/plugins/msn/msn.c Fri Dec 15 00:45:25 2000 +0000 +++ b/plugins/msn/msn.c Fri Dec 15 01:23:04 2000 +0000 @@ -76,7 +76,7 @@ int fd; }; -void msn_handler(gpointer data, gint source, GdkInputCondition condition); +void msn_callback(gpointer data, gint fd, GdkInputCondition condition); GSList *msn_connections = NULL; @@ -242,8 +242,9 @@ g_free(ap); } -void msn_callback(struct gaim_connection *gc, gint fd) +void msn_callback(gpointer data, gint fd, GdkInputCondition condition) { + struct gaim_connection *gc = data; struct msn_data *mdata; char c; int i = 0; @@ -454,7 +455,7 @@ mc->user = g_strdup(resps[5]); - mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_handler, gc); + mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_callback, gc); g_snprintf(buf, 4096, "ANS 1 %s %s %s\n", gc->username, resps[4], resps[1]); write(mc->fd, buf, strlen(buf)); @@ -470,12 +471,6 @@ } - -void msn_handler(gpointer data, gint source, GdkInputCondition condition) -{ - msn_callback(data, source); -} - void msn_login(struct aim_user *user) { time_t trId = time((time_t *) NULL); @@ -642,7 +637,7 @@ do_import(NULL, gc); /* We want to do this so that we can read what's going on */ - gc->inpa = gdk_input_add(mdata->fd, GDK_INPUT_READ, msn_handler, gc); + gc->inpa = gdk_input_add(mdata->fd, GDK_INPUT_READ, msn_callback, gc); } void msn_send_im(struct gaim_connection *gc, char *who, char *message, int away) @@ -705,7 +700,7 @@ } mc->user = g_strdup(who); - mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_handler, gc); + mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_callback, gc); msn_connections = g_slist_append(msn_connections, mc);