allow empty/NULL context message
[oweals/gnunet.git] / src / peerstore / test_peerstore_api_sync.c
index 765ae911354bd3d2120016e86c2e156519300ae2..a09763d0575d66d837aa9b07f77a632965716170 100644 (file)
@@ -79,7 +79,7 @@ static const char *val = "test_peerstore_api_store_val";
  * @param emsg any error message
  * @return #GNUNET_YES (all good, continue)
  */
-static int
+static void
 iterate_cb (void *cls,
            const struct GNUNET_PEERSTORE_Record *record,
             const char *emsg)
@@ -92,12 +92,11 @@ iterate_cb (void *cls,
     GNUNET_PEERSTORE_disconnect (h,
                                 GNUNET_NO);
     GNUNET_SCHEDULER_shutdown ();
-    return GNUNET_YES;
+    return;
   }
   rec_val = record->value;
   GNUNET_break (0 == strcmp (rec_val, val));
   ok = 0;
-  return GNUNET_YES;
 }
 
 
@@ -161,7 +160,6 @@ run (void *cls,
      struct GNUNET_TESTING_Peer *peer)
 {
   cfg = c;
-  GNUNET_assert (NULL != h);
   memset (&pid, 1, sizeof (pid));
   test1 ();
 }