mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
gio/proxy: Fixed compilation warnings
* Wrong return type (NULL instead of FALSE) * Unused static function declaration
This commit is contained in:
parent
0958e66317
commit
de1598a34d
@ -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);
|
||||
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user