aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/perf_peerstore_store.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/perf_peerstore_store.c
parentd19064a18f3fcf35c94d7f56485e41fb3425d066 (diff)
downloadgnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.tar.gz
gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.zip
-use const in peerstore callback
Diffstat (limited to 'src/peerstore/perf_peerstore_store.c')
-rw-r--r--src/peerstore/perf_peerstore_store.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/peerstore/perf_peerstore_store.c b/src/peerstore/perf_peerstore_store.c
index e97699fe2..ad7c70195 100644
--- a/src/peerstore/perf_peerstore_store.c
+++ b/src/peerstore/perf_peerstore_store.c
@@ -37,9 +37,9 @@ static struct GNUNET_PeerIdentity p;
37static char *k = "test_peerstore_stress_key"; 37static char *k = "test_peerstore_stress_key";
38static char *v = "test_peerstore_stress_val"; 38static char *v = "test_peerstore_stress_val";
39 39
40int count = 0; 40static int count = 0;
41 41
42void 42static void
43disconnect () 43disconnect ()
44{ 44{
45 if (NULL != h) 45 if (NULL != h)
@@ -48,7 +48,7 @@ disconnect ()
48} 48}
49 49
50 50
51void 51static void
52store () 52store ()
53{ 53{
54 GNUNET_PEERSTORE_store (h, ss, &p, k, v, strlen (v) + 1, 54 GNUNET_PEERSTORE_store (h, ss, &p, k, v, strlen (v) + 1,
@@ -61,7 +61,9 @@ store ()
61 61
62 62
63static int 63static int
64watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 64watch_cb (void *cls,
65 const struct GNUNET_PEERSTORE_Record *record,
66 const char *emsg)
65{ 67{
66 GNUNET_assert (NULL == emsg); 68 GNUNET_assert (NULL == emsg);
67 if (STORES == count) 69 if (STORES == count)