aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_peerstore_api_sync.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2016-06-18 21:49:23 +0000
committerMartin Schanzenbach <mschanzenbach@posteo.de>2016-06-18 21:49:23 +0000
commitd8d3021ad9af2abe551fd6cd0fe2529a99d3683c (patch)
treedf0e7f7e1105700f40396e624f1b3f49a20c1197 /src/peerstore/test_peerstore_api_sync.c
parent240091007e4aa56fa36edb62f526b0d390879d95 (diff)
downloadgnunet-d8d3021ad9af2abe551fd6cd0fe2529a99d3683c.tar.gz
gnunet-d8d3021ad9af2abe551fd6cd0fe2529a99d3683c.zip
-fix
Diffstat (limited to 'src/peerstore/test_peerstore_api_sync.c')
-rw-r--r--src/peerstore/test_peerstore_api_sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/peerstore/test_peerstore_api_sync.c b/src/peerstore/test_peerstore_api_sync.c
index 765ae9113..06d100100 100644
--- a/src/peerstore/test_peerstore_api_sync.c
+++ b/src/peerstore/test_peerstore_api_sync.c
@@ -79,7 +79,7 @@ static const char *val = "test_peerstore_api_store_val";
79 * @param emsg any error message 79 * @param emsg any error message
80 * @return #GNUNET_YES (all good, continue) 80 * @return #GNUNET_YES (all good, continue)
81 */ 81 */
82static int 82static void
83iterate_cb (void *cls, 83iterate_cb (void *cls,
84 const struct GNUNET_PEERSTORE_Record *record, 84 const struct GNUNET_PEERSTORE_Record *record,
85 const char *emsg) 85 const char *emsg)
@@ -92,12 +92,10 @@ iterate_cb (void *cls,
92 GNUNET_PEERSTORE_disconnect (h, 92 GNUNET_PEERSTORE_disconnect (h,
93 GNUNET_NO); 93 GNUNET_NO);
94 GNUNET_SCHEDULER_shutdown (); 94 GNUNET_SCHEDULER_shutdown ();
95 return GNUNET_YES;
96 } 95 }
97 rec_val = record->value; 96 rec_val = record->value;
98 GNUNET_break (0 == strcmp (rec_val, val)); 97 GNUNET_break (0 == strcmp (rec_val, val));
99 ok = 0; 98 ok = 0;
100 return GNUNET_YES;
101} 99}
102 100
103 101