diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-22 11:32:42 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-22 11:32:42 +0000 |
commit | 80f013beff06dc9457328b84411c56cf0445aeeb (patch) | |
tree | 11e2e46af72f78f2869057d878f7fb991878bd0c /src/util/resolver_api.c | |
parent | 6119925f2e9a14f795153c78dc88550ce24f4f90 (diff) | |
download | gnunet-80f013beff06dc9457328b84411c56cf0445aeeb.tar.gz gnunet-80f013beff06dc9457328b84411c56cf0445aeeb.zip |
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 24 |
1 files changed, 0 insertions, 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 | |||
@@ -669,30 +669,6 @@ GNUNET_RESOLVER_hostname_get (struct GNUNET_SCHEDULER_Handle *sched, | |||
669 | 669 | ||
670 | 670 | ||
671 | /** | 671 | /** |
672 | * Get local hostname | ||
673 | * @return hostname | ||
674 | */ | ||
675 | char * | ||
676 | GNUNET_RESOLVER_local_hostname_get ( ) | ||
677 | { | ||
678 | |||
679 | char hostname[GNUNET_OS_get_hostname_max_length() + 1]; | ||
680 | |||
681 | |||
682 | if (0 != gethostname (hostname, sizeof (hostname) - 1)) | ||
683 | { | ||
684 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR | | ||
685 | GNUNET_ERROR_TYPE_BULK, "gethostname"); | ||
686 | return NULL; | ||
687 | } | ||
688 | #if DEBUG_RESOLVER | ||
689 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
690 | _("Resolving our hostname `%s'\n"), hostname); | ||
691 | #endif | ||
692 | return GNUNET_strdup (hostname); | ||
693 | } | ||
694 | |||
695 | /** | ||
696 | * Get local fully qualified domain name | 672 | * Get local fully qualified domain name |
697 | * @return fqdn | 673 | * @return fqdn |
698 | */ | 674 | */ |