From f97eb70650828aa8c7943294fbe874c176da31b7 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 18 Apr 2012 09:18:29 +0000 Subject: removed compiler warnings caused by usage of gboolean as gpointer. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3050 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ src/update_check.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25a08013..f98d0636 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-04-18 + + * src/update_check.c: removed compiler warnings caused by usage of + gboolean as gpointer (thanks to Ricard Mones). + 2012-04-18 * addr_compl.c: fixed Bug #52: Address autocomplete: Not possible to diff --git a/src/update_check.c b/src/update_check.c index b1797c6c..c499e493 100644 --- a/src/update_check.c +++ b/src/update_check.c @@ -310,7 +310,7 @@ static void update_check_cb(GPid pid, gint status, gpointer data) gboolean got_version = FALSE; gboolean rel_result = FALSE; gboolean dev_result = FALSE; - gboolean show_dialog_always = (gboolean)data; + gboolean show_dialog_always = GPOINTER_TO_INT(data); gchar buf[BUFFSIZE]; ssize_t size; gchar *disp_rel_ver = NULL; @@ -589,7 +589,7 @@ static void update_check_plugin_cb(GPid pid, gint status, gpointer data) gchar *key, *val, *p; gchar *cur_ver; gint i; - gboolean show_dialog_always = (gboolean)data; + gboolean show_dialog_always = GPOINTER_TO_INT(data); gchar buf[BUFFSIZE]; ssize_t size; GHashTable *plugin_version_table = NULL; @@ -712,7 +712,7 @@ void update_check_plugin(gboolean show_dialog_always) #endif update_check_set_check_plugin_url(buf); } - spawn_curl(check_plugin_url, update_check_plugin_cb, (gpointer)show_dialog_always); + spawn_curl(check_plugin_url, update_check_plugin_cb, GINT_TO_POINTER(show_dialog_always)); } #endif /* USE_UPDATE_CHECK_PLUGIN */ @@ -731,7 +731,7 @@ void update_check(gboolean show_dialog_always) #endif update_check_set_check_url(buf); } - spawn_curl(check_url, update_check_cb, (gpointer)show_dialog_always); + spawn_curl(check_url, update_check_cb, GINT_TO_POINTER(show_dialog_always)); } void update_check_set_check_url(const gchar *url) -- cgit v1.2.3