[gdm] Fix build



commit 88e22674532faa5eb80b8781220fe0cb66334796
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Jun 16 23:44:58 2010 -0400

    Fix build
    
    Fix breakage from f8da7fc999ba46431ffbb5b562f9b35c88a0fd2d

 common/gdm-address.c |   25 ++++++++++++++++---------
 1 files changed, 16 insertions(+), 9 deletions(-)
---
diff --git a/common/gdm-address.c b/common/gdm-address.c
index 6edddc3..0ed5e8d 100644
--- a/common/gdm-address.c
+++ b/common/gdm-address.c
@@ -218,16 +218,12 @@ address_family_str (GdmAddress *address)
         return str;
 }
 
-void
-gdm_address_debug (GdmAddress *address)
+static void
+_gdm_address_debug (GdmAddress *address,
+                    const char *hostname,
+                    const char *host,
+                    const char *port)
 {
-        char *hostname;
-        char *host;
-        char *port;
-
-        gdm_address_get_hostname (address, &hostname);
-        gdm_address_get_numeric_info (address, &host, &port);
-
         g_debug ("Address family:%d (%s) hostname:%s host:%s port:%s local:%d loopback:%d",
                  address->ss->ss_family,
                  address_family_str (address) ? address_family_str (address) : "(null)",
@@ -236,6 +232,17 @@ gdm_address_debug (GdmAddress *address)
                  port ? port : "(null)",
                  gdm_address_is_local (address),
                  gdm_address_is_loopback (address));
+}
+
+void
+gdm_address_debug (GdmAddress *address)
+{
+        char *hostname;
+        char *host;
+        char *port;
+
+        gdm_address_get_hostname (address, &hostname);
+        gdm_address_get_numeric_info (address, &host, &port);
 
         g_free (hostname);
         g_free (host);



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