summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-08-19 17:31:42 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2010-08-19 17:31:42 -0400
commitde1598a34d920882991d6b5166bce815ca4aa428 (patch)
treea2908cfa728905ffb0164fb222472ea2b2fcd438
parent0958e663175fe51361aa1e6a87a3f3c5de08bebf (diff)
downloadglib-de1598a34d920882991d6b5166bce815ca4aa428.tar.gz
gio/proxy: Fixed compilation warnings
* Wrong return type (NULL instead of FALSE) * Unused static function declaration
-rw-r--r--gio/gproxy.c2
-rw-r--r--gio/gsocks4proxy.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/gio/gproxy.c b/gio/gproxy.c
index 79a63adfc..bb1e5f6c5 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 4524675fd..05c74c8da 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 ();