diff options
Diffstat (limited to 'src/util/test_connection_transmit_cancel.c')
-rw-r--r-- | src/util/test_connection_transmit_cancel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/util/test_connection_transmit_cancel.c b/src/util/test_connection_transmit_cancel.c index 72e27243b..4280edf1d 100644 --- a/src/util/test_connection_transmit_cancel.c +++ b/src/util/test_connection_transmit_cancel.c | |||
@@ -43,15 +43,13 @@ not_run (void *cls, size_t size, void *buf) | |||
43 | 43 | ||
44 | 44 | ||
45 | static void | 45 | static void |
46 | task_transmit_cancel (void *cls, | 46 | task_transmit_cancel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
47 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
48 | { | 47 | { |
49 | int *ok = cls; | 48 | int *ok = cls; |
50 | struct GNUNET_CONNECTION_TransmitHandle *th; | 49 | struct GNUNET_CONNECTION_TransmitHandle *th; |
51 | struct GNUNET_CONNECTION_Handle *csock; | 50 | struct GNUNET_CONNECTION_Handle *csock; |
52 | 51 | ||
53 | csock = GNUNET_CONNECTION_create_from_connect (cfg, | 52 | csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); |
54 | "localhost", PORT); | ||
55 | GNUNET_assert (csock != NULL); | 53 | GNUNET_assert (csock != NULL); |
56 | th = GNUNET_CONNECTION_notify_transmit_ready (csock, | 54 | th = GNUNET_CONNECTION_notify_transmit_ready (csock, |
57 | 12, | 55 | 12, |