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/test_peerstore_api_iterate.c | |
parent | d19064a18f3fcf35c94d7f56485e41fb3425d066 (diff) | |
download | gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.tar.gz gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.zip |
-use const in peerstore callback
Diffstat (limited to 'src/peerstore/test_peerstore_api_iterate.c')
-rw-r--r-- | src/peerstore/test_peerstore_api_iterate.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/peerstore/test_peerstore_api_iterate.c b/src/peerstore/test_peerstore_api_iterate.c index 626a020de..5952d45d1 100644 --- a/src/peerstore/test_peerstore_api_iterate.c +++ b/src/peerstore/test_peerstore_api_iterate.c | |||
@@ -39,8 +39,11 @@ static char *k3 = "test_peerstore_api_iterate_key3"; | |||
39 | static char *val = "test_peerstore_api_iterate_val"; | 39 | static char *val = "test_peerstore_api_iterate_val"; |
40 | static int count = 0; | 40 | static int count = 0; |
41 | 41 | ||
42 | |||
42 | static int | 43 | static int |
43 | iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | 44 | iter3_cb (void *cls, |
45 | const struct GNUNET_PEERSTORE_Record *record, | ||
46 | const char *emsg) | ||
44 | { | 47 | { |
45 | if (NULL != emsg) | 48 | if (NULL != emsg) |
46 | return GNUNET_NO; | 49 | return GNUNET_NO; |
@@ -58,7 +61,9 @@ iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | |||
58 | 61 | ||
59 | 62 | ||
60 | static int | 63 | static int |
61 | iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | 64 | iter2_cb (void *cls, |
65 | const struct GNUNET_PEERSTORE_Record *record, | ||
66 | const char *emsg) | ||
62 | { | 67 | { |
63 | if (NULL != emsg) | 68 | if (NULL != emsg) |
64 | return GNUNET_NO; | 69 | return GNUNET_NO; |
@@ -76,7 +81,9 @@ iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | |||
76 | 81 | ||
77 | 82 | ||
78 | static int | 83 | static int |
79 | iter1_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) | 84 | iter1_cb (void *cls, |
85 | const struct GNUNET_PEERSTORE_Record *record, | ||
86 | const char *emsg) | ||
80 | { | 87 | { |
81 | if (NULL != emsg) | 88 | if (NULL != emsg) |
82 | return GNUNET_NO; | 89 | return GNUNET_NO; |