diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-10 09:44:07 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-10 09:44:07 +0000 |
commit | c83605b6d368a51cc6543f7462a993738406e716 (patch) | |
tree | 29a481dfe231caf98686275bd7a1d9c3136d2ca0 /src/transport/test_plugin_transport.c | |
parent | ce0d41d509cbaa2637e762bb1c97b92ade98608a (diff) | |
download | gnunet-c83605b6d368a51cc6543f7462a993738406e716.tar.gz gnunet-c83605b6d368a51cc6543f7462a993738406e716.zip |
fixing compile error
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index e41a2d0e4..83ff7f1c4 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -291,31 +291,25 @@ static int got_reply; | |||
291 | * Take the given address and append it to the set of results sent back to | 291 | * Take the given address and append it to the set of results sent back to |
292 | * the client. | 292 | * the client. |
293 | * | 293 | * |
294 | * @param cls the transmission context used ('struct GNUNET_SERVER_TransmitContext*') | 294 | * @param cls closure |
295 | * @param buf one of the names for the host, NULL on last callback | 295 | * @param address the address to print |
296 | * @param res #GNUNET_OK if conversion was successful, #GNUNET_SYSERR on failure, | 296 | * @param res result code |
297 | * #GNUNET_OK on last callback | ||
298 | */ | 297 | */ |
299 | static void | 298 | static void |
300 | address_pretty_printer_cb (void *cls, | 299 | address_pretty_printer_cb (void *cls, const char *address, int res) |
301 | const char *buf, | ||
302 | int res) | ||
303 | { | 300 | { |
304 | if (NULL != buf) | 301 | if (NULL != address) |
305 | { | 302 | { |
306 | got_reply = GNUNET_YES; | 303 | got_reply = GNUNET_YES; |
307 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 304 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, "Pretty address : `%s'\n", address); |
308 | "Pretty address : `%s'\n", | ||
309 | buf); | ||
310 | pretty_printers_running--; | 305 | pretty_printers_running--; |
311 | } | 306 | } |
312 | else | 307 | else |
313 | { | 308 | { |
314 | if ( (GNUNET_OK == res) && | 309 | if (GNUNET_NO == got_reply) |
315 | (GNUNET_NO == got_reply) ) | ||
316 | { | 310 | { |
317 | pretty_printers_running--; | 311 | pretty_printers_running--; |
318 | GNUNET_break (0); | 312 | GNUNET_break(0); |
319 | end_badly_now (); | 313 | end_badly_now (); |
320 | } | 314 | } |
321 | } | 315 | } |