From b03990b826a31b995617a3ff1cbe929d0251ed01 Mon Sep 17 00:00:00 2001 From: Daniel Macks Date: Fri, 17 Jul 2009 14:42:17 -0400 Subject: Fix "Nested extern declaration" warning Move an extern declaration out of a function definition to silence gcc warnings. See http://bugzilla.gnome.org/show_bug.cgi?id=568516 --- daemon/gdm-xdmcp-display-factory.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'daemon/gdm-xdmcp-display-factory.c') diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c index 1d33b448..2207cefa 100644 --- a/daemon/gdm-xdmcp-display-factory.c +++ b/daemon/gdm-xdmcp-display-factory.c @@ -605,9 +605,6 @@ open_port (GdmXdmcpDisplayFactory *factory) return TRUE; } -static gboolean -gdm_xdmcp_host_allow (GdmAddress *address) -{ #ifdef HAVE_TCPWRAPPERS /* @@ -618,7 +615,12 @@ gdm_xdmcp_host_allow (GdmAddress *address) char *client_name, char *client_addr, char *client_user); +#endif +static gboolean +gdm_xdmcp_host_allow (GdmAddress *address) +{ +#ifdef HAVE_TCPWRAPPERS char *client; char *host; gboolean ret; -- cgit v1.2.1