diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:55:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-18 15:55:12 +0000 |
commit | 6d91f133149ea81040340e8853d7d6e94e57947c (patch) | |
tree | 909f05982b8be5c7cf6de927aabc3a9bb6312d60 /src/transport/plugin_transport_udp.c | |
parent | 475452849162e7c123141d9710b2cf3480e8f868 (diff) | |
download | gnunet-6d91f133149ea81040340e8853d7d6e94e57947c.tar.gz gnunet-6d91f133149ea81040340e8853d7d6e94e57947c.zip |
cleanup
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 5afb804dc..e79daa351 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -62,11 +62,6 @@ | |||
62 | #define UDP_DIRECT_DISTANCE 1 | 62 | #define UDP_DIRECT_DISTANCE 1 |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * Handle for request of hostname resolution, non-NULL if pending. | ||
66 | */ | ||
67 | static struct GNUNET_RESOLVER_RequestHandle *hostname_dns; | ||
68 | |||
69 | /** | ||
70 | * How long until we give up on transmitting the welcome message? | 65 | * How long until we give up on transmitting the welcome message? |
71 | */ | 66 | */ |
72 | #define HOSTNAME_RESOLVE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) | 67 | #define HOSTNAME_RESOLVE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) |
@@ -1863,10 +1858,10 @@ libgnunet_plugin_transport_udp_done (void *cls) | |||
1863 | struct Plugin *plugin = api->cls; | 1858 | struct Plugin *plugin = api->cls; |
1864 | 1859 | ||
1865 | udp_transport_server_stop (plugin); | 1860 | udp_transport_server_stop (plugin); |
1866 | if (NULL != hostname_dns) | 1861 | if (NULL != plugin->hostname_dns) |
1867 | { | 1862 | { |
1868 | GNUNET_RESOLVER_request_cancel (hostname_dns); | 1863 | GNUNET_RESOLVER_request_cancel (plugin->hostname_dns); |
1869 | hostname_dns = NULL; | 1864 | plugin->hostname_dns = NULL; |
1870 | } | 1865 | } |
1871 | 1866 | ||
1872 | GNUNET_SERVICE_stop (plugin->service); | 1867 | GNUNET_SERVICE_stop (plugin->service); |