gnunet

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

commit 087cd170eca2230d08fd74f6e47fde57bf87988a
parent e5d413fb46ab35dd4322b2a7ba6c2c8f26de6410
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 17 Dec 2014 03:46:02 +0000

-check rval

Diffstat:
Msrc/namestore/test_namestore_api_zone_iteration_nick.c | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/namestore/test_namestore_api_zone_iteration_nick.c b/src/namestore/test_namestore_api_zone_iteration_nick.c @@ -157,6 +157,7 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) nsh = NULL; } + static int check_zone_1 (const char *label, unsigned int rd_count, const struct GNUNET_GNSRECORD_Data *rd) @@ -314,6 +315,7 @@ create_record (unsigned int count) return rd; } + static void nick_2_cont (void *cls, int32_t success, const char *emsg) { @@ -361,13 +363,9 @@ nick_1_cont (void *cls, int32_t success, const char *emsg) GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Namestore cannot store no block\n")); } - - - } - /** * Callback called from the zone iterator when we iterate over * the empty zone. Check that we got no records and then @@ -434,7 +432,11 @@ run (void *cls, 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); @@ -446,7 +448,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);