newline
[oweals/gnunet.git] / src / util / resolver_api.c
index 6d874cce8f6988f90758e6f4c7ac484064b9c275..430c4ebae721b18d4e288c58b556960bcd5d8f6e 100644 (file)
@@ -225,7 +225,6 @@ handle_address_response (void *cls, const struct GNUNET_MessageHeader *msg)
   const struct sockaddr *sa;
   socklen_t salen;
 
-
   if (msg == NULL)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -668,30 +667,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