[glib] gio/proxy: Fixed compilation warnings
- From: Nicolas Dufresne <nicolasd src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio/proxy: Fixed compilation warnings
- Date: Thu, 19 Aug 2010 21:35:37 +0000 (UTC)
commit de1598a34d920882991d6b5166bce815ca4aa428
Author: Nicolas Dufresne <nicolas dufresne collabora co uk>
Date: Thu Aug 19 17:31:42 2010 -0400
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 insertions(+), 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]