diff options
Diffstat (limited to 'src/peerstore/test_plugin_peerstore.c')
-rw-r--r-- | src/peerstore/test_plugin_peerstore.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/peerstore/test_plugin_peerstore.c b/src/peerstore/test_plugin_peerstore.c index da78b3f75..179e32b52 100644 --- a/src/peerstore/test_plugin_peerstore.c +++ b/src/peerstore/test_plugin_peerstore.c | |||
@@ -79,7 +79,7 @@ load_plugin (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
79 | } | 79 | } |
80 | 80 | ||
81 | 81 | ||
82 | static int | 82 | static void |
83 | test_record (void *cls, | 83 | test_record (void *cls, |
84 | const struct GNUNET_PEERSTORE_Record *record, | 84 | const struct GNUNET_PEERSTORE_Record *record, |
85 | const char *error) | 85 | const char *error) |
@@ -88,13 +88,12 @@ test_record (void *cls, | |||
88 | char* testval = "test_val"; | 88 | char* testval = "test_val"; |
89 | 89 | ||
90 | if (NULL == record) | 90 | if (NULL == record) |
91 | return GNUNET_NO; | 91 | return; |
92 | 92 | ||
93 | GNUNET_assert (0 == memcmp (record->peer, id, sizeof (struct GNUNET_PeerIdentity))); | 93 | GNUNET_assert (0 == memcmp (record->peer, id, sizeof (struct GNUNET_PeerIdentity))); |
94 | GNUNET_assert (0 == strcmp ("subsys", record->sub_system)); | 94 | GNUNET_assert (0 == strcmp ("subsys", record->sub_system)); |
95 | GNUNET_assert (0 == strcmp ("key", record->key)); | 95 | GNUNET_assert (0 == strcmp ("key", record->key)); |
96 | GNUNET_assert (0 == memcmp (testval, record->value, strlen (testval))); | 96 | GNUNET_assert (0 == memcmp (testval, record->value, strlen (testval))); |
97 | return GNUNET_YES; | ||
98 | } | 97 | } |
99 | 98 | ||
100 | 99 | ||