aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/test_peerstore_api_iterate.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_iterate.c
parentd19064a18f3fcf35c94d7f56485e41fb3425d066 (diff)
downloadgnunet-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.c13
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";
39static char *val = "test_peerstore_api_iterate_val"; 39static char *val = "test_peerstore_api_iterate_val";
40static int count = 0; 40static int count = 0;
41 41
42
42static int 43static int
43iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 44iter3_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
60static int 63static int
61iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 64iter2_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
78static int 83static int
79iter1_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 84iter1_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;