[gnome-photos] Use the correct typecast



commit 8edb25682f409b2451593df4bf22a739f0b96a84
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Dec 8 03:17:48 2013 +0100

    Use the correct typecast

 src/photos-collection-icon-watcher.c    |    2 +-
 src/photos-fetch-collection-state-job.c |    4 ++--
 src/photos-source-manager.c             |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-collection-icon-watcher.c b/src/photos-collection-icon-watcher.c
index 18d1b74..d8b5186 100644
--- a/src/photos-collection-icon-watcher.c
+++ b/src/photos-collection-icon-watcher.c
@@ -141,7 +141,7 @@ photos_collection_icon_watcher_destroy (PhotosCollectionIconWatcher *self)
   gpointer key;
 
   g_hash_table_iter_init (&iter, priv->item_connections);
-  while (g_hash_table_iter_next (&iter, (gpointer) &key, (gpointer) &item))
+  while (g_hash_table_iter_next (&iter, (gpointer *) &key, (gpointer *) &item))
     {
       guint id = GPOINTER_TO_UINT (key);
       g_signal_handler_disconnect (item, id);
diff --git a/src/photos-fetch-collection-state-job.c b/src/photos-fetch-collection-state-job.c
index 8e1f428..ac5f60c 100644
--- a/src/photos-fetch-collection-state-job.c
+++ b/src/photos-fetch-collection-state-job.c
@@ -99,7 +99,7 @@ photos_fetch_collection_state_job_emit_callback (PhotosFetchCollectionStateJob *
 
   /* For all the registered collections… */
   g_hash_table_iter_init (&iter1, collections);
-  while (g_hash_table_iter_next (&iter1, (gpointer) &coll_idx, (gpointer) &collection))
+  while (g_hash_table_iter_next (&iter1, (gpointer *) &coll_idx, (gpointer *) &collection))
     {
       GHashTableIter iter2;
       GList *collections_for_item;
@@ -125,7 +125,7 @@ photos_fetch_collection_state_job_emit_callback (PhotosFetchCollectionStateJob *
       g_list_free (keys);
 
       g_hash_table_iter_init (&iter2, priv->collections_for_items);
-      while (g_hash_table_iter_next (&iter2, (gpointer) &item_idx, (gpointer) &collections_for_item))
+      while (g_hash_table_iter_next (&iter2, (gpointer *) &item_idx, (gpointer *) &collections_for_item))
         {
           const gchar *identifier;
 
diff --git a/src/photos-source-manager.c b/src/photos-source-manager.c
index 24c73c3..2d75d13 100644
--- a/src/photos-source-manager.c
+++ b/src/photos-source-manager.c
@@ -175,7 +175,7 @@ photos_source_manager_get_for_provider_type (PhotosSourceManager *self, const gc
 
   sources = photos_base_manager_get_objects (PHOTOS_BASE_MANAGER (self));
   g_hash_table_iter_init (&iter, sources);
-  while (g_hash_table_iter_next (&iter, NULL, (gpointer) &source))
+  while (g_hash_table_iter_next (&iter, NULL, (gpointer *) &source))
     {
       GoaAccount *account;
       GoaObject *object;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]