diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-18 16:22:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-18 16:22:14 +0000 |
commit | fb12af8319a84389a536ab2f3735daf3b24f11bd (patch) | |
tree | 53e1424149fe8e7d5673e783868fcaa8a6bdbb55 /src/peerstore/perf_peerstore_store.c | |
parent | d19064a18f3fcf35c94d7f56485e41fb3425d066 (diff) | |
download | gnunet-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.c | 10 |
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; | |||
37 | static char *k = "test_peerstore_stress_key"; | 37 | static char *k = "test_peerstore_stress_key"; |
38 | static char *v = "test_peerstore_stress_val"; | 38 | static char *v = "test_peerstore_stress_val"; |
39 | 39 | ||
40 | int count = 0; | 40 | static int count = 0; |
41 | 41 | ||
42 | void | 42 | static void |
43 | disconnect () | 43 | disconnect () |
44 | { | 44 | { |
45 | if (NULL != h) | 45 | if (NULL != h) |
@@ -48,7 +48,7 @@ disconnect () | |||
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||
51 | void | 51 | static void |
52 | store () | 52 | store () |
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 | ||
63 | static int | 63 | static int |
64 | watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | 64 | watch_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) |