aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_peerstore_api_sync.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-18 16:22:14 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-18 16:22:14 +0000
commitfb12af8319a84389a536ab2f3735daf3b24f11bd (patch)
tree53e1424149fe8e7d5673e783868fcaa8a6bdbb55 /src/peerstore/test_peerstore_api_sync.c
parentd19064a18f3fcf35c94d7f56485e41fb3425d066 (diff)
downloadgnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.tar.gz
gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.zip
-use const in peerstore callback
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 3803d72c1..8bd8328f8 100644
--- a/src/peerstore/test_peerstore_api_sync.c
+++ b/src/peerstore/test_peerstore_api_sync.c
@@ -26,9 +26,9 @@
26#include "gnunet_testing_lib.h" 26#include "gnunet_testing_lib.h"
27#include "gnunet_peerstore_service.h" 27#include "gnunet_peerstore_service.h"
28 28
29int ok = 1; 29static int ok = 1;
30 30
31const struct GNUNET_CONFIGURATION_Handle *cfg; 31static const struct GNUNET_CONFIGURATION_Handle *cfg;
32 32
33static struct GNUNET_PEERSTORE_Handle *h; 33static struct GNUNET_PEERSTORE_Handle *h;
34 34
@@ -37,8 +37,10 @@ static struct GNUNET_PeerIdentity pid;
37static char *key = "test_peerstore_api_store_key"; 37static char *key = "test_peerstore_api_store_key";
38static char *val = "test_peerstore_api_store_val"; 38static char *val = "test_peerstore_api_store_val";
39 39
40int 40static int
41iterate_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 41iterate_cb (void *cls,
42 const struct GNUNET_PEERSTORE_Record *record,
43 const char *emsg)
42{ 44{
43 const char *rec_val; 45 const char *rec_val;
44 46