aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_plugin_peerstore.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_plugin_peerstore.c
parent240091007e4aa56fa36edb62f526b0d390879d95 (diff)
downloadgnunet-d8d3021ad9af2abe551fd6cd0fe2529a99d3683c.tar.gz
gnunet-d8d3021ad9af2abe551fd6cd0fe2529a99d3683c.zip
-fix
Diffstat (limited to 'src/peerstore/test_plugin_peerstore.c')
-rw-r--r--src/peerstore/test_plugin_peerstore.c5
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
82static int 82static void
83test_record (void *cls, 83test_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