aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-e4b8e31ebe760b60dc9b5c4246ed7790075d4c46.tar.gz
gnunet-e4b8e31ebe760b60dc9b5c4246ed7790075d4c46.zip
-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)
55} 55}
56 56
57 57
58/**
59 * Continuation called with a status result.
60 *
61 * @param cls closure
62 * @param success #GNUNET_OK or #GNUNET_SYSERR
63 */
64static void
65cont2 (void *cls, int success)
66{
67 sr = NULL;
68}
69
70
58static void 71static void
59cont (void *cls) 72cont (void *cls)
60{ 73{
@@ -66,7 +79,7 @@ cont (void *cls)
66 strlen (val) + 1, 79 strlen (val) + 1,
67 GNUNET_TIME_UNIT_FOREVER_ABS, 80 GNUNET_TIME_UNIT_FOREVER_ABS,
68 GNUNET_PEERSTORE_STOREOPTION_REPLACE, 81 GNUNET_PEERSTORE_STOREOPTION_REPLACE,
69 NULL, 82 &cont2,
70 NULL); 83 NULL);
71} 84}
72 85