Mercurial > pidgin
changeset 10124:b4efa002dad8
[gaim-migrate @ 11161]
warnings -= 3;
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 19 Oct 2004 04:32:56 +0000 |
parents | 1369e3ae9c9d |
children | ee50e4797352 |
files | plugins/gaim-remote/remote.c src/gtkprefs.c src/plugin.c |
diffstat | 3 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/gaim-remote/remote.c Tue Oct 19 03:59:00 2004 +0000 +++ b/plugins/gaim-remote/remote.c Tue Oct 19 04:32:56 2004 +0000 @@ -474,12 +474,12 @@ gaim_recv(GIOChannel *source, gchar *buf, gint len) { gint total = 0; - guint cur; + gsize cur; GError *error = NULL; while (total < len) { - if (g_io_channel_read_chars(source, buf + total, len - total, (gsize *) &cur, &error) != G_IO_STATUS_NORMAL) { + if (g_io_channel_read_chars(source, buf + total, len - total, &cur, &error) != G_IO_STATUS_NORMAL) { if (error) g_error_free(error); return -1;
--- a/src/gtkprefs.c Tue Oct 19 03:59:00 2004 +0000 +++ b/src/gtkprefs.c Tue Oct 19 04:32:56 2004 +0000 @@ -2218,14 +2218,14 @@ { struct away_message *amt; GtkTreeIter iter; - GtkListStore *ls = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(tv))); + GtkTreeModel *ls = gtk_tree_view_get_model(GTK_TREE_VIEW(tv)); GtkTreeSelection *sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv)); GValue val = { 0, }; /* Get the pointer to the away message and pass that */ - if (! gtk_tree_selection_get_selected (sel, (GtkTreeModel**)&ls, &iter)) + if (! gtk_tree_selection_get_selected (sel, &ls, &iter)) return; - gtk_tree_model_get_value (GTK_TREE_MODEL(ls), &iter, 1, &val); + gtk_tree_model_get_value (ls, &iter, 1, &val); amt = g_value_get_pointer (&val); /* XXX CORE/UI create_away_mess(NULL, amt);
--- a/src/plugin.c Tue Oct 19 03:59:00 2004 +0000 +++ b/src/plugin.c Tue Oct 19 04:32:56 2004 +0000 @@ -177,6 +177,7 @@ #ifdef GAIM_PLUGINS GaimPlugin *plugin = NULL; GaimPlugin *loader; + gpointer unpunned; gboolean (*gaim_init_plugin)(GaimPlugin *); gaim_debug_misc("plugins", "probing %s\n", filename); @@ -207,7 +208,7 @@ } if (!g_module_symbol(plugin->handle, "gaim_init_plugin", - (gpointer *)&gaim_init_plugin)) { + &unpunned)) { g_module_close(plugin->handle); plugin->handle = NULL; @@ -219,6 +220,7 @@ return NULL; } + gaim_init_plugin = unpunned; } else { loader = find_loader_for_plugin(plugin);