gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 61881ced3c4816fc1440217631d75ac934e92f35
parent db9c68c76d7a9eb3f200df9d0fcaf971387cb061
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 17 Jun 2014 20:35:52 +0000

-check return value

Diffstat:
Msrc/namestore/test_namestore_api_zone_iteration_stop.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c @@ -431,11 +431,14 @@ run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_TESTING_Peer *peer) { - directory = NULL; - GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); + GNUNET_assert (GNUNET_OK == + GNUNET_CONFIGURATION_get_value_string (cfg, + "PATHS", + "GNUNET_TEST_HOME", + &directory)); GNUNET_DISK_directory_remove (directory); - endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL); + endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &endbadly, NULL); nsh = GNUNET_NAMESTORE_connect (cfg); GNUNET_break (NULL != nsh); /* first, iterate over empty namestore */ @@ -443,7 +446,8 @@ run (void *cls, NULL, &empty_zone_proc, nsh); if (NULL == zi) { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone iterator\n"); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "Failed to create zone iterator\n"); GNUNET_break (0); GNUNET_SCHEDULER_cancel (endbadly_task); endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL);