aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_peerstore_api_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerstore/test_peerstore_api_sync.c')
-rw-r--r--src/peerstore/test_peerstore_api_sync.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/peerstore/test_peerstore_api_sync.c b/src/peerstore/test_peerstore_api_sync.c
index 3803d72c12..8bd8328f82 100644
--- a/src/peerstore/test_peerstore_api_sync.c
+++ b/src/peerstore/test_peerstore_api_sync.c
@@ -26,9 +26,9 @@
#include "gnunet_testing_lib.h"
#include "gnunet_peerstore_service.h"
-int ok = 1;
+static int ok = 1;
-const struct GNUNET_CONFIGURATION_Handle *cfg;
+static const struct GNUNET_CONFIGURATION_Handle *cfg;
static struct GNUNET_PEERSTORE_Handle *h;
@@ -37,8 +37,10 @@ static struct GNUNET_PeerIdentity pid;
static char *key = "test_peerstore_api_store_key";
static char *val = "test_peerstore_api_store_val";
-int
-iterate_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+static int
+iterate_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
const char *rec_val;