From c83605b6d368a51cc6543f7462a993738406e716 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 10 Jun 2014 09:44:07 +0000 Subject: fixing compile error --- src/transport/test_plugin_transport.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src') 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; * Take the given address and append it to the set of results sent back to * the client. * - * @param cls the transmission context used ('struct GNUNET_SERVER_TransmitContext*') - * @param buf one of the names for the host, NULL on last callback - * @param res #GNUNET_OK if conversion was successful, #GNUNET_SYSERR on failure, - * #GNUNET_OK on last callback + * @param cls closure + * @param address the address to print + * @param res result code */ static void -address_pretty_printer_cb (void *cls, - const char *buf, - int res) +address_pretty_printer_cb (void *cls, const char *address, int res) { - if (NULL != buf) + if (NULL != address) { got_reply = GNUNET_YES; - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Pretty address : `%s'\n", - buf); + GNUNET_log(GNUNET_ERROR_TYPE_INFO, "Pretty address : `%s'\n", address); pretty_printers_running--; } else { - if ( (GNUNET_OK == res) && - (GNUNET_NO == got_reply) ) + if (GNUNET_NO == got_reply) { pretty_printers_running--; - GNUNET_break (0); + GNUNET_break(0); end_badly_now (); } } -- cgit v1.2.3