diff options
Diffstat (limited to 'src/util/test_server_with_client_unix.c')
-rw-r--r-- | src/util/test_server_with_client_unix.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/util/test_server_with_client_unix.c b/src/util/test_server_with_client_unix.c index 00df21129..99af4e8c3 100644 --- a/src/util/test_server_with_client_unix.c +++ b/src/util/test_server_with_client_unix.c | |||
@@ -55,8 +55,7 @@ send_done (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
55 | 55 | ||
56 | 56 | ||
57 | static void | 57 | static void |
58 | recv_cb (void *cls, | 58 | recv_cb (void *cls, struct GNUNET_SERVER_Client *argclient, |
59 | struct GNUNET_SERVER_Client *argclient, | ||
60 | const struct GNUNET_MessageHeader *message) | 59 | const struct GNUNET_MessageHeader *message) |
61 | { | 60 | { |
62 | switch (ok) | 61 | switch (ok) |
@@ -156,13 +155,10 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
156 | slens[0] = sizeof (un); | 155 | slens[0] = sizeof (un); |
157 | sap[1] = NULL; | 156 | sap[1] = NULL; |
158 | slens[1] = 0; | 157 | slens[1] = 0; |
159 | server = GNUNET_SERVER_create (NULL, | 158 | server = |
160 | NULL, | 159 | GNUNET_SERVER_create (NULL, NULL, sap, slens, |
161 | sap, | 160 | GNUNET_TIME_relative_multiply |
162 | slens, | 161 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), GNUNET_NO); |
163 | GNUNET_TIME_relative_multiply | ||
164 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), | ||
165 | GNUNET_NO); | ||
166 | GNUNET_assert (server != NULL); | 162 | GNUNET_assert (server != NULL); |
167 | handlers[0].callback_cls = cls; | 163 | handlers[0].callback_cls = cls; |
168 | GNUNET_SERVER_add_handlers (server, handlers); | 164 | GNUNET_SERVER_add_handlers (server, handlers); |
@@ -175,8 +171,7 @@ task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
175 | 171 | ||
176 | client = GNUNET_CLIENT_connect ("test", cfg); | 172 | client = GNUNET_CLIENT_connect ("test", cfg); |
177 | GNUNET_assert (client != NULL); | 173 | GNUNET_assert (client != NULL); |
178 | GNUNET_CLIENT_notify_transmit_ready (client, | 174 | GNUNET_CLIENT_notify_transmit_ready (client, 256, |
179 | 256, | ||
180 | GNUNET_TIME_relative_multiply | 175 | GNUNET_TIME_relative_multiply |
181 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), | 176 | (GNUNET_TIME_UNIT_MILLISECONDS, 250), |
182 | GNUNET_NO, ¬ify_ready, NULL); | 177 | GNUNET_NO, ¬ify_ready, NULL); |