summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2010-06-16 17:51:29 -0400
committerRay Strode <rstrode@redhat.com>2010-06-16 17:51:29 -0400
commitf8da7fc999ba46431ffbb5b562f9b35c88a0fd2d (patch)
tree28a22fc909b723ab2db88bdf729792c60dfd9557 /common
parentbc78b6c7fc40a6388ddb194461b7b5d140acd8d0 (diff)
downloadgdm-f8da7fc999ba46431ffbb5b562f9b35c88a0fd2d.tar.gz
Fix gdm_address_debug
It was always printing NULL before. Spotted by mariodebian <mariodebian@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/gdm-address.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/common/gdm-address.c b/common/gdm-address.c
index dc9e8b3c..6edddc3c 100644
--- a/common/gdm-address.c
+++ b/common/gdm-address.c
@@ -218,15 +218,15 @@ address_family_str (GdmAddress *address)
return str;
}
-static void
-_gdm_address_debug (GdmAddress *address, char *hostname, char *host, char *port)
+void
+gdm_address_debug (GdmAddress *address)
{
- g_return_if_fail (address != NULL);
-
- hostname = NULL;
- host = NULL;
- port = NULL;
+ 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,
@@ -242,19 +242,6 @@ _gdm_address_debug (GdmAddress *address, char *hostname, char *host, char *port)
g_free (port);
}
-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);
-
- _gdm_address_debug (address, hostname, host, port);
-}
-
gboolean
gdm_address_get_hostname (GdmAddress *address,
char **hostnamep)