summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-03 10:40:03 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-03 10:40:03 +0100
commite4b8e31ebe760b60dc9b5c4246ed7790075d4c46 (patch)
treed4639dc569133122c631c8af087dd25c8cbc923c
parent7c83dbeee30c8566b689edc1dc01a5773d487b9a (diff)
-fix bug in test
-rw-r--r--src/service/peerstore/test_peerstore_api_watch.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/service/peerstore/test_peerstore_api_watch.c b/src/service/peerstore/test_peerstore_api_watch.c
index 90f1180f8..8ce39456f 100644
--- a/src/service/peerstore/test_peerstore_api_watch.c
+++ b/src/service/peerstore/test_peerstore_api_watch.c
@@ -55,6 +55,19 @@ finish (void *cls)
}
+/**
+ * Continuation called with a status result.
+ *
+ * @param cls closure
+ * @param success #GNUNET_OK or #GNUNET_SYSERR
+ */
+static void
+cont2 (void *cls, int success)
+{
+ sr = NULL;
+}
+
+
static void
cont (void *cls)
{
@@ -66,7 +79,7 @@ cont (void *cls)
strlen (val) + 1,
GNUNET_TIME_UNIT_FOREVER_ABS,
GNUNET_PEERSTORE_STOREOPTION_REPLACE,
- NULL,
+ &cont2,
NULL);
}