[gdm] Fix "Nested extern declaration" warning



commit b03990b826a31b995617a3ff1cbe929d0251ed01
Author: Daniel Macks <dmacks netspace org>
Date:   Fri Jul 17 14:42:17 2009 -0400

    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 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index 1d33b44..2207cef 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]