From 646964ac643b33c6b0fd71bb41023ca654104f4c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Mar 2017 20:00:42 +0100 Subject: [PATCH] fix #4957 --- src/testbed/test_gnunet_helper_testbed.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/testbed/test_gnunet_helper_testbed.c b/src/testbed/test_gnunet_helper_testbed.c index 7a2dce8a5..7ba9e7c31 100644 --- a/src/testbed/test_gnunet_helper_testbed.c +++ b/src/testbed/test_gnunet_helper_testbed.c @@ -121,10 +121,12 @@ do_abort (void *cls) * #GNUNET_SYSERR during GNUNET_HELPER_stop() */ static void -cont_cb (void *cls, int result) +cont_cb (void *cls, + int result) { shandle = NULL; - LOG (GNUNET_ERROR_TYPE_DEBUG, "Message sent\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Message sent\n"); GNUNET_assert (GNUNET_OK == result); } @@ -138,11 +140,11 @@ cont_cb (void *cls, int result) * @param cls closure * @param client identification of the client * @param message the actual message - * * @return #GNUNET_OK on success, #GNUNET_SYSERR to stop further processing */ static int -mst_cb (void *cls, void *client, const struct GNUNET_MessageHeader *message) +mst_cb (void *cls, + const struct GNUNET_MessageHeader *message) { const struct GNUNET_TESTBED_HelperReply *msg; char *config; @@ -207,8 +209,12 @@ run (void *cls, char *const *args, const char *cfgfile, const char *trusted_ip = "127.0.0.1"; helper = - GNUNET_HELPER_start (GNUNET_YES, "gnunet-helper-testbed", binary_argv, - &mst_cb, &exp_cb, NULL); + GNUNET_HELPER_start (GNUNET_YES, + "gnunet-helper-testbed", + binary_argv, + &mst_cb, + &exp_cb, + NULL); GNUNET_assert (NULL != helper); cfg = GNUNET_CONFIGURATION_dup (cfg2); msg = GNUNET_TESTBED_create_helper_init_msg_ (trusted_ip, NULL, cfg); -- 2.25.1