[libsocialweb] item: Add explicit cast to avoid compiler warning



commit 1ef23ef0a5b25144514ffbf78c887499b68c7efd
Author: Rob Bradford <rob linux intel com>
Date:   Fri Apr 29 16:29:38 2011 +0100

    item: Add explicit cast to avoid compiler warning

 libsocialweb/sw-item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsocialweb/sw-item.c b/libsocialweb/sw-item.c
index 97764c3..3afd715 100644
--- a/libsocialweb/sw-item.c
+++ b/libsocialweb/sw-item.c
@@ -486,7 +486,7 @@ sw_item_save_into_cache (SwCacheable *cacheable, GKeyFile *keys,
   g_key_file_set_string (keys, group, "type", "item");
 
   g_hash_table_iter_init (&iter, sw_item_peek_hash (item));
-  while (g_hash_table_iter_next (&iter, (gpointer)&key, &value)) {
+  while (g_hash_table_iter_next (&iter, (gpointer)&key, (gpointer)&value)) {
     char *new_value;
     /*
      * We make relative paths when saving so that the cache files are portable



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