gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r34676 - gnunet/src/namestore


From: gnunet
Subject: [GNUnet-SVN] r34676 - gnunet/src/namestore
Date: Wed, 17 Dec 2014 04:46:02 +0100

Author: grothoff
Date: 2014-12-17 04:46:02 +0100 (Wed, 17 Dec 2014)
New Revision: 34676

Modified:
   gnunet/src/namestore/test_namestore_api_zone_iteration_nick.c
Log:
-check rval

Modified: gnunet/src/namestore/test_namestore_api_zone_iteration_nick.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_zone_iteration_nick.c       
2014-12-17 03:44:36 UTC (rev 34675)
+++ gnunet/src/namestore/test_namestore_api_zone_iteration_nick.c       
2014-12-17 03:46:02 UTC (rev 34676)
@@ -157,6 +157,7 @@
   nsh = NULL;
 }
 
+
 static int
 check_zone_1 (const char *label, unsigned int rd_count,
     const struct GNUNET_GNSRECORD_Data *rd)
@@ -314,6 +315,7 @@
   return rd;
 }
 
+
 static void
 nick_2_cont (void *cls, int32_t success, const char *emsg)
 {
@@ -361,13 +363,9 @@
     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 @@
      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 @@
                                             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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]