From 80f013beff06dc9457328b84411c56cf0445aeeb Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 22 Apr 2010 11:32:42 +0000 Subject: [PATCH] --- src/util/resolver_api.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index 6d874cce8..94844289e 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -668,30 +668,6 @@ GNUNET_RESOLVER_hostname_get (struct GNUNET_SCHEDULER_Handle *sched, } -/** - * Get local hostname - * @return hostname - */ -char * -GNUNET_RESOLVER_local_hostname_get ( ) -{ - - char hostname[GNUNET_OS_get_hostname_max_length() + 1]; - - - if (0 != gethostname (hostname, sizeof (hostname) - 1)) - { - GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR | - GNUNET_ERROR_TYPE_BULK, "gethostname"); - return NULL; - } -#if DEBUG_RESOLVER - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - _("Resolving our hostname `%s'\n"), hostname); -#endif - return GNUNET_strdup (hostname); -} - /** * Get local fully qualified domain name * @return fqdn -- 2.25.1