aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_connection_transmit_cancel.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-04 14:00:32 +0000
commit83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch)
treed0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/util/test_connection_transmit_cancel.c
parent28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff)
downloadgnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz
gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip
curly wars / auto-indentation
Diffstat (limited to 'src/util/test_connection_transmit_cancel.c')
-rw-r--r--src/util/test_connection_transmit_cancel.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/util/test_connection_transmit_cancel.c b/src/util/test_connection_transmit_cancel.c
index 540d8c51d..50308a2d0 100644
--- a/src/util/test_connection_transmit_cancel.c
+++ b/src/util/test_connection_transmit_cancel.c
@@ -43,8 +43,7 @@ not_run (void *cls, size_t size, void *buf)
43 43
44 44
45static void 45static void
46task_transmit_cancel (void *cls, 46task_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;
@@ -53,8 +52,8 @@ task_transmit_cancel (void *cls,
53 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT); 52 csock = GNUNET_CONNECTION_create_from_connect (cfg, "localhost", PORT);
54 GNUNET_assert (csock != NULL); 53 GNUNET_assert (csock != NULL);
55 th = GNUNET_CONNECTION_notify_transmit_ready (csock, 12, 54 th = GNUNET_CONNECTION_notify_transmit_ready (csock, 12,
56 GNUNET_TIME_UNIT_MINUTES, 55 GNUNET_TIME_UNIT_MINUTES,
57 &not_run, cls); 56 &not_run, cls);
58 GNUNET_assert (NULL != th); 57 GNUNET_assert (NULL != th);
59 GNUNET_CONNECTION_notify_transmit_ready_cancel (th); 58 GNUNET_CONNECTION_notify_transmit_ready_cancel (th);
60 GNUNET_CONNECTION_destroy (csock, GNUNET_YES); 59 GNUNET_CONNECTION_destroy (csock, GNUNET_YES);
@@ -75,7 +74,7 @@ check_transmit_cancel ()
75 ok = 1; 74 ok = 1;
76 cfg = GNUNET_CONFIGURATION_create (); 75 cfg = GNUNET_CONFIGURATION_create ();
77 GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME", 76 GNUNET_CONFIGURATION_set_value_string (cfg, "resolver", "HOSTNAME",
78 "localhost"); 77 "localhost");
79 GNUNET_SCHEDULER_run (&task_transmit_cancel, &ok); 78 GNUNET_SCHEDULER_run (&task_transmit_cancel, &ok);
80 GNUNET_CONFIGURATION_destroy (cfg); 79 GNUNET_CONFIGURATION_destroy (cfg);
81 return ok; 80 return ok;
@@ -89,11 +88,11 @@ main (int argc, char *argv[])
89 88
90 GNUNET_log_setup ("test_connection_transmit_cancel", 89 GNUNET_log_setup ("test_connection_transmit_cancel",
91#if VERBOSE 90#if VERBOSE
92 "DEBUG", 91 "DEBUG",
93#else 92#else
94 "WARNING", 93 "WARNING",
95#endif 94#endif
96 NULL); 95 NULL);
97 ret += check_transmit_cancel (); 96 ret += check_transmit_cancel ();
98 97
99 return ret; 98 return ret;