From 8a112720529e9ec36e333ff73a7bfc5db791586e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 16 Jan 2012 14:39:28 +0000 Subject: [PATCH] - fix test --- src/ats/test_ats_mlp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ats/test_ats_mlp.c b/src/ats/test_ats_mlp.c index 125850b9b..32917d546 100644 --- a/src/ats/test_ats_mlp.c +++ b/src/ats/test_ats_mlp.c @@ -40,6 +40,8 @@ static int ret; struct GNUNET_STATISTICS_Handle * stats; +struct GAS_MLP_Handle *mlp; + static void check (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) @@ -51,9 +53,10 @@ check (void *cls, char *const *args, const char *cfgfile, #endif stats = GNUNET_STATISTICS_create("ats", cfg); - GNUNET_assert (GNUNET_OK == GAS_mlp_init(NULL, MLP_MAX_EXEC_DURATION, MLP_MAX_ITERATIONS)); + mlp = GAS_mlp_init(NULL, MLP_MAX_EXEC_DURATION, MLP_MAX_ITERATIONS); + GNUNET_assert (mlp != NULL); - GAS_mlp_done(); + GAS_mlp_done (mlp); GNUNET_STATISTICS_destroy(stats, GNUNET_NO); -- 2.25.1