aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_connection_timeout_no_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_connection_timeout_no_connect.c')
-rw-r--r--src/util/test_connection_timeout_no_connect.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/test_connection_timeout_no_connect.c b/src/util/test_connection_timeout_no_connect.c
index 00b247c52..b598907ec 100644
--- a/src/util/test_connection_timeout_no_connect.c
+++ b/src/util/test_connection_timeout_no_connect.c
@@ -57,10 +57,10 @@ task_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
57 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); 57 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT);
58 GNUNET_assert (csock != NULL); 58 GNUNET_assert (csock != NULL);
59 GNUNET_assert (NULL != 59 GNUNET_assert (NULL !=
60 GNUNET_CONNECTION_notify_transmit_ready (csock, 1024, 60 GNUNET_CONNECTION_notify_transmit_ready (csock, 1024,
61 GNUNET_TIME_UNIT_SECONDS, 61 GNUNET_TIME_UNIT_SECONDS,
62 &handle_timeout, 62 &handle_timeout,
63 cls)); 63 cls));
64} 64}
65 65
66 66
@@ -76,7 +76,7 @@ check_timeout ()
76 ok = 1; 76 ok = 1;
77 cfg = GNUNET_CONFIGURATION_create (); 77 cfg = GNUNET_CONFIGURATION_create ();
78 GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME", 78 GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME",
79 "localhost"); 79 "localhost");
80 GNUNET_SCHEDULER_run (&task_timeout, &ok); 80 GNUNET_SCHEDULER_run (&task_timeout, &ok);
81 GNUNET_CONFIGURATION_destroy (cfg); 81 GNUNET_CONFIGURATION_destroy (cfg);
82 return ok; 82 return ok;
@@ -89,11 +89,11 @@ main (int argc, char *argv[])
89 89
90 GNUNET_log_setup ("test_connection_timeout_no_connect", 90 GNUNET_log_setup ("test_connection_timeout_no_connect",
91#if VERBOSE 91#if VERBOSE
92 "DEBUG", 92 "DEBUG",
93#else 93#else
94 "WARNING", 94 "WARNING",
95#endif 95#endif
96 NULL); 96 NULL);
97 ret += check_timeout (); 97 ret += check_timeout ();
98 return ret; 98 return ret;
99} 99}