gio/proxy: Fixed compilation warnings

* Wrong return type (NULL instead of FALSE)
* Unused static function declaration
This commit is contained in:
Nicolas Dufresne 2010-08-19 17:31:42 -04:00
parent 0958e66317
commit de1598a34d
2 changed files with 1 additions and 3 deletions

View 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);

View 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 ();