diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-19 10:51:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-19 10:51:26 +0000 |
commit | 92b983e311c77322914cc6164bc8d24f0eaffdf4 (patch) | |
tree | baa1457d8a2830088f545249a82c72c8cd39ecc1 /src/util/test_connection_addressing.c | |
parent | ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba (diff) | |
download | gnunet-92b983e311c77322914cc6164bc8d24f0eaffdf4.tar.gz gnunet-92b983e311c77322914cc6164bc8d24f0eaffdf4.zip |
-removing obsolete argument from GNUNET_CONNECTION_destroy
Diffstat (limited to 'src/util/test_connection_addressing.c')
-rw-r--r-- | src/util/test_connection_addressing.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/test_connection_addressing.c b/src/util/test_connection_addressing.c index 2d08acc3c..ba7acaefc 100644 --- a/src/util/test_connection_addressing.c +++ b/src/util/test_connection_addressing.c | |||
@@ -99,7 +99,8 @@ receive_check (void *cls, const void *buf, size_t available, | |||
99 | else | 99 | else |
100 | { | 100 | { |
101 | *ok = 0; | 101 | *ok = 0; |
102 | GNUNET_CONNECTION_destroy (asock, GNUNET_YES); | 102 | GNUNET_CONNECTION_destroy (csock); |
103 | GNUNET_CONNECTION_destroy (asock); | ||
103 | } | 104 | } |
104 | } | 105 | } |
105 | 106 | ||
@@ -128,7 +129,7 @@ run_accept (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
128 | expect.sin_addr.s_addr = htonl (INADDR_LOOPBACK); | 129 | expect.sin_addr.s_addr = htonl (INADDR_LOOPBACK); |
129 | GNUNET_assert (0 == memcmp (&expect, v4, alen)); | 130 | GNUNET_assert (0 == memcmp (&expect, v4, alen)); |
130 | GNUNET_free (addr); | 131 | GNUNET_free (addr); |
131 | GNUNET_CONNECTION_destroy (lsock, GNUNET_YES); | 132 | GNUNET_CONNECTION_destroy (lsock); |
132 | GNUNET_CONNECTION_receive (asock, 1024, | 133 | GNUNET_CONNECTION_receive (asock, 1024, |
133 | GNUNET_TIME_relative_multiply | 134 | GNUNET_TIME_relative_multiply |
134 | (GNUNET_TIME_UNIT_SECONDS, 5), &receive_check, | 135 | (GNUNET_TIME_UNIT_SECONDS, 5), &receive_check, |
@@ -143,6 +144,7 @@ make_hello (void *cls, size_t size, void *buf) | |||
143 | return 12; | 144 | return 12; |
144 | } | 145 | } |
145 | 146 | ||
147 | |||
146 | static void | 148 | static void |
147 | task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 149 | task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
148 | { | 150 | { |
@@ -167,7 +169,6 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
167 | GNUNET_CONNECTION_notify_transmit_ready (csock, 12, | 169 | GNUNET_CONNECTION_notify_transmit_ready (csock, 12, |
168 | GNUNET_TIME_UNIT_SECONDS, | 170 | GNUNET_TIME_UNIT_SECONDS, |
169 | &make_hello, NULL)); | 171 | &make_hello, NULL)); |
170 | GNUNET_CONNECTION_destroy (csock, GNUNET_YES); | ||
171 | GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL, ls, &run_accept, | 172 | GNUNET_SCHEDULER_add_read_net (GNUNET_TIME_UNIT_FOREVER_REL, ls, &run_accept, |
172 | cls); | 173 | cls); |
173 | } | 174 | } |