From de1598a34d920882991d6b5166bce815ca4aa428 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 19 Aug 2010 17:31:42 -0400 Subject: [PATCH] gio/proxy: Fixed compilation warnings * Wrong return type (NULL instead of FALSE) * Unused static function declaration --- gio/gproxy.c | 2 +- gio/gsocks4proxy.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gio/gproxy.c b/gio/gproxy.c index 79a63ad..bb1e5f6 100644 --- a/gio/gproxy.c +++ b/gio/gproxy.c @@ -200,7 +200,7 @@ g_proxy_supports_hostname (GProxy *proxy) { GProxyInterface *iface; - g_return_val_if_fail (G_IS_PROXY (proxy), NULL); + g_return_val_if_fail (G_IS_PROXY (proxy), FALSE); iface = G_PROXY_GET_IFACE (proxy); diff --git a/gio/gsocks4proxy.c b/gio/gsocks4proxy.c index 4524675..05c74c8 100644 --- a/gio/gsocks4proxy.c +++ b/gio/gsocks4proxy.c @@ -39,8 +39,6 @@ struct _GSocks4ProxyClass GSocks4aProxyClass parent_class; }; -static void g_socks4_proxy_iface_init (GProxyInterface *proxy_iface); - #define g_socks4_proxy_get_type _g_socks4_proxy_get_type G_DEFINE_TYPE_WITH_CODE (GSocks4Proxy, g_socks4_proxy, G_TYPE_SOCKS4A_PROXY, _g_io_modules_ensure_extension_points_registered (); -- 2.7.4