summaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-06-10 09:44:07 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-06-10 09:44:07 +0000
commitc83605b6d368a51cc6543f7462a993738406e716 (patch)
tree29a481dfe231caf98686275bd7a1d9c3136d2ca0 /src/transport/test_plugin_transport.c
parentce0d41d509cbaa2637e762bb1c97b92ade98608a (diff)
fixing compile error
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c22
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;
* 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 ();
}
}