aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-01 20:47:52 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-01 20:47:52 +0000
commit652e89b59ed2207c2c12172fdabcd6e659995c81 (patch)
treef054c819d483c1056e18c1099afd4c7fcd2582a0 /src/util/test_service.c
parent5e4113e83368849500792e57946c3d8dd9e548d8 (diff)
downloadgnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.tar.gz
gnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.zip
fixing bio testcase and a bug in bio.c, also indenting
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r--src/util/test_service.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c
index 037f6edf7..93cafb4d2 100644
--- a/src/util/test_service.c
+++ b/src/util/test_service.c
@@ -86,8 +86,7 @@ ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
86 GNUNET_CLIENT_notify_transmit_ready (client, 86 GNUNET_CLIENT_notify_transmit_ready (client,
87 sizeof (struct GNUNET_MessageHeader), 87 sizeof (struct GNUNET_MessageHeader),
88 GNUNET_TIME_UNIT_SECONDS, 88 GNUNET_TIME_UNIT_SECONDS,
89 GNUNET_NO, 89 GNUNET_NO, &build_msg, client);
90 &build_msg, client);
91} 90}
92 91
93static void 92static void
@@ -114,12 +113,12 @@ runner (void *cls,
114 GNUNET_SERVER_add_handlers (server, myhandlers); 113 GNUNET_SERVER_add_handlers (server, myhandlers);
115 GNUNET_CLIENT_service_test (sched, 114 GNUNET_CLIENT_service_test (sched,
116 "test_service", 115 "test_service",
117 cfg, GNUNET_TIME_UNIT_SECONDS, &ready, (void*) cfg); 116 cfg, GNUNET_TIME_UNIT_SECONDS, &ready,
117 (void *) cfg);
118} 118}
119 119
120static void 120static void
121term (void *cls, 121term (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg)
122 const struct GNUNET_CONFIGURATION_Handle *cfg)
123{ 122{
124 int *ok = cls; 123 int *ok = cls;
125 *ok = 0; 124 *ok = 0;
@@ -170,8 +169,7 @@ ready6 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
170 GNUNET_CLIENT_notify_transmit_ready (client, 169 GNUNET_CLIENT_notify_transmit_ready (client,
171 sizeof (struct GNUNET_MessageHeader), 170 sizeof (struct GNUNET_MessageHeader),
172 GNUNET_TIME_UNIT_SECONDS, 171 GNUNET_TIME_UNIT_SECONDS,
173 GNUNET_NO, 172 GNUNET_NO, &build_msg, client);
174 &build_msg, client);
175} 173}
176 174
177static void 175static void
@@ -184,7 +182,8 @@ runner6 (void *cls,
184 GNUNET_SERVER_add_handlers (server, myhandlers); 182 GNUNET_SERVER_add_handlers (server, myhandlers);
185 GNUNET_CLIENT_service_test (sched, 183 GNUNET_CLIENT_service_test (sched,
186 "test_service6", 184 "test_service6",
187 cfg, GNUNET_TIME_UNIT_SECONDS, &ready6, (void*) cfg); 185 cfg, GNUNET_TIME_UNIT_SECONDS, &ready6,
186 (void *) cfg);
188} 187}
189 188
190/** 189/**
@@ -254,8 +253,8 @@ static void
254start_stop_main (void *cls, 253start_stop_main (void *cls,
255 struct GNUNET_SCHEDULER_Handle *sched, 254 struct GNUNET_SCHEDULER_Handle *sched,
256 char *const *args, 255 char *const *args,
257 const char *cfgfile, 256 const char *cfgfile,
258 const struct GNUNET_CONFIGURATION_Handle *cfg) 257 const struct GNUNET_CONFIGURATION_Handle *cfg)
259{ 258{
260 int *ret = cls; 259 int *ret = cls;
261 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 260 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,