Updating branch refs/heads/master to 6c0621681612fb7ac7136019b72f2b828edfc93c (commit) from 4267fecbea1303eff63f8332998b78213b212e31 (commit)
commit 6c0621681612fb7ac7136019b72f2b828edfc93c Author: Florian Rivoal <friv...@xfce.org> Date: Tue Jan 4 18:35:46 2011 +0900 Fix compile warnings Add a missing include, and change a function's return type to void, since the return value isn't used, and wasn't properly returned. This addresses bug #6027 panel-plugin/weather-icon.c | 1 + panel-plugin/weather-search.c | 4 ++-- panel-plugin/weather-search.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/panel-plugin/weather-icon.c b/panel-plugin/weather-icon.c index 7b73552..f403e86 100644 --- a/panel-plugin/weather-icon.c +++ b/panel-plugin/weather-icon.c @@ -21,6 +21,7 @@ #include <glib.h> #include <gtk/gtk.h> +#include <string.h> #include "weather-icon.h" diff --git a/panel-plugin/weather-search.c b/panel-plugin/weather-search.c index 6f90c56..6e62cfb 100644 --- a/panel-plugin/weather-search.c +++ b/panel-plugin/weather-search.c @@ -497,7 +497,7 @@ cb_geolocation (gboolean succeed, -gboolean weather_search_by_ip( +void weather_search_by_ip( const gchar *proxy_host, gint proxy_port, void (*gui_cb)(const gchar *loc_name, const gchar *loc_code, gpointer user_data), gpointer user_data) @@ -518,5 +518,5 @@ gboolean weather_search_by_ip( weather_http_receive_data ("ipinfodb.com", "/ip_query.php", proxy_host, proxy_port, cb_geolocation, data); - + return; } diff --git a/panel-plugin/weather-search.h b/panel-plugin/weather-search.h index a785864..9473e1b 100644 --- a/panel-plugin/weather-search.h +++ b/panel-plugin/weather-search.h @@ -47,7 +47,7 @@ search_dialog *create_search_dialog (GtkWindow *, gchar *, gint); gboolean run_search_dialog (search_dialog * dialog); -gboolean weather_search_by_ip(const gchar *proxy_host, gint proxy_port, +void weather_search_by_ip(const gchar *proxy_host, gint proxy_port, void (*gui_cb)(const gchar *loc_name, const gchar *loc_code, gpointer user_data), gpointer user_data); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits