gio/proxy: Fixed compilation warnings
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Thu, 19 Aug 2010 21:31:42 +0000 (17:31 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Thu, 19 Aug 2010 21:31:42 +0000 (17:31 -0400)
* Wrong return type (NULL instead of FALSE)
* Unused static function declaration

gio/gproxy.c
gio/gsocks4proxy.c

index 79a63ad..bb1e5f6 100644 (file)
@@ -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);
 
index 4524675..05c74c8 100644 (file)
@@ -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 ();