[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10940 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10940 - gnunet/src/util |
Date: |
Fri, 16 Apr 2010 17:44:48 +0200 |
Author: wachs
Date: 2010-04-16 17:44:48 +0200 (Fri, 16 Apr 2010)
New Revision: 10940
Modified:
gnunet/src/util/test_resolver_api.c
Log:
Modified: gnunet/src/util/test_resolver_api.c
===================================================================
--- gnunet/src/util/test_resolver_api.c 2010-04-16 15:41:20 UTC (rev 10939)
+++ gnunet/src/util/test_resolver_api.c 2010-04-16 15:44:48 UTC (rev 10940)
@@ -218,6 +218,7 @@
struct GNUNET_TIME_Relative timeout = GNUNET_TIME_relative_multiply(
GNUNET_TIME_UNIT_MILLISECONDS, 2500);
int count_ips = 0;
+ char * own_hostname;
memset(&sa, 0, sizeof(sa));
sa.sin_family = AF_INET;
@@ -234,9 +235,11 @@
/*
* Looking up our own hostname
*/
- GNUNET_RESOLVER_local_hostname_get(sched, cfg, &check_local_hostname, cls);
+ own_hostname = GNUNET_malloc(GNUNET_OS_get_hostname_max_length() + 1);
+ own_hostname = GNUNET_RESOLVER_local_hostname_get();
+ check_local_hostname( NULL, own_hostname);
+ GNUNET_free (own_hostname);
-
/*
* Testing non-local DNS resolution
* DNS rootserver to test: a.root-servers.net - 198.41.0.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10940 - gnunet/src/util,
gnunet <=