diff options
author | Colin Walters <walters@verbum.org> | 2012-09-04 19:20:02 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-09-04 19:20:52 -0400 |
commit | 849cab95903ae3dd089239a0af0c0bc048f58c69 (patch) | |
tree | 7de6b6e1c693da7f54aa4269269ab7eda0d30d59 /src | |
parent | 6f5f0e855e170ac95016ce9f72498da40a81aed4 (diff) | |
download | nautilus-sendto-849cab95903ae3dd089239a0af0c0bc048f58c69.tar.gz |
Only use C90 declarations
Fixes the build with newer gnome-common.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/gajim/gajim.c | 3 | ||||
-rw-r--r-- | src/plugins/pidgin/pidgin.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/gajim/gajim.c b/src/plugins/gajim/gajim.c index 088c69b..88825a8 100644 --- a/src/plugins/gajim/gajim.c +++ b/src/plugins/gajim/gajim.c @@ -198,6 +198,7 @@ _get_contacts (void) gchar **accounts; gchar **account_iter; gchar *account; + gpointer iconset_ptr; error = NULL; @@ -213,7 +214,7 @@ _get_contacts (void) _handle_dbus_exception(error, TRUE); return FALSE; } - gpointer iconset_ptr = g_hash_table_lookup(prefs_map, "iconset"); + iconset_ptr = g_hash_table_lookup(prefs_map, "iconset"); if (iconset_ptr != NULL) { iconset = g_strdup((gchar *)iconset_ptr); } else { diff --git a/src/plugins/pidgin/pidgin.c b/src/plugins/pidgin/pidgin.c index 5d9b52e..7ae9b81 100644 --- a/src/plugins/pidgin/pidgin.c +++ b/src/plugins/pidgin/pidgin.c @@ -231,6 +231,7 @@ add_pidgin_contacts_to_model (GtkTreeStore *store, g_hash_table_iter_init (&hiter, contact_hash); while (g_hash_table_iter_next (&hiter, NULL, (gpointer)&contacts_group)) { gint accounts; + gint i; dat = g_ptr_array_index (contacts_group, 0); @@ -239,7 +240,6 @@ add_pidgin_contacts_to_model (GtkTreeStore *store, gtk_tree_store_append (store, parent, NULL); gtk_tree_store_set (store, parent, COL_ICON, NULL, COL_ALIAS, dat->alias, -1); - gint i; for (i = 0; i < accounts; ++i) { dat = g_ptr_array_index (contacts_group, i); @@ -444,9 +444,9 @@ destroy (NstPlugin *plugin) g_hash_table_iter_init (&iter, contact_hash); while (g_hash_table_iter_next (&iter, NULL, (gpointer)&contacts_group)) { gint accounts; + gint i; accounts = contacts_group->len; - gint i; for (i = 0; i < accounts; ++i) { dat = g_ptr_array_index (contacts_group, i); free_contact (dat); |