-check rval
authorChristian Grothoff <christian@grothoff.org>
Wed, 17 Dec 2014 03:46:02 +0000 (03:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 17 Dec 2014 03:46:02 +0000 (03:46 +0000)
src/namestore/test_namestore_api_zone_iteration_nick.c

index 9b3b5acf528b7fcaa76e3624cdbc07f5e2a8ada6..6ea4e39c01454932d12c303a6a6001bd3452e332 100644 (file)
@@ -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);