diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-16 10:09:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-16 10:09:47 +0000 |
commit | 007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3 (patch) | |
tree | b42d56110ae349eb2977673690c072dcf75b32a4 /src/transport/plugin_transport_udp.c | |
parent | 94c41ff98d293d8c041c4bbbe8d19dbf8ccd6f3f (diff) | |
download | gnunet-007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3.tar.gz gnunet-007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3.zip |
resolver API change
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 8f95b9ee6..2366a2e16 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -2001,7 +2001,6 @@ udp_plugin_address_pretty_printer (void *cls, | |||
2001 | GNUNET_TRANSPORT_AddressStringCallback asc, | 2001 | GNUNET_TRANSPORT_AddressStringCallback asc, |
2002 | void *asc_cls) | 2002 | void *asc_cls) |
2003 | { | 2003 | { |
2004 | struct Plugin *plugin = cls; | ||
2005 | struct PrettyPrinterContext *ppc; | 2004 | struct PrettyPrinterContext *ppc; |
2006 | const void *sb; | 2005 | const void *sb; |
2007 | size_t sbs; | 2006 | size_t sbs; |
@@ -2046,8 +2045,7 @@ udp_plugin_address_pretty_printer (void *cls, | |||
2046 | ppc->asc = asc; | 2045 | ppc->asc = asc; |
2047 | ppc->asc_cls = asc_cls; | 2046 | ppc->asc_cls = asc_cls; |
2048 | ppc->port = port; | 2047 | ppc->port = port; |
2049 | GNUNET_RESOLVER_hostname_get (plugin->env->cfg, | 2048 | GNUNET_RESOLVER_hostname_get (sb, |
2050 | sb, | ||
2051 | sbs, | 2049 | sbs, |
2052 | !numeric, timeout, &append_port, ppc); | 2050 | !numeric, timeout, &append_port, ppc); |
2053 | } | 2051 | } |
@@ -2358,8 +2356,7 @@ libgnunet_plugin_transport_udp_init (void *cls) | |||
2358 | GNUNET_OS_network_interfaces_list (&process_interfaces, plugin); | 2356 | GNUNET_OS_network_interfaces_list (&process_interfaces, plugin); |
2359 | } | 2357 | } |
2360 | 2358 | ||
2361 | plugin->hostname_dns = GNUNET_RESOLVER_hostname_resolve (env->cfg, | 2359 | plugin->hostname_dns = GNUNET_RESOLVER_hostname_resolve (AF_UNSPEC, |
2362 | AF_UNSPEC, | ||
2363 | HOSTNAME_RESOLVE_TIMEOUT, | 2360 | HOSTNAME_RESOLVE_TIMEOUT, |
2364 | &process_hostname_ips, | 2361 | &process_hostname_ips, |
2365 | plugin); | 2362 | plugin); |