From fb12af8319a84389a536ab2f3735daf3b24f11bd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 18 Dec 2014 16:22:14 +0000 Subject: -use const in peerstore callback --- src/peerstore/test_peerstore_api_iterate.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/peerstore/test_peerstore_api_iterate.c') 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"; static char *val = "test_peerstore_api_iterate_val"; static int count = 0; + static int -iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) +iter3_cb (void *cls, + const struct GNUNET_PEERSTORE_Record *record, + const char *emsg) { if (NULL != emsg) return GNUNET_NO; @@ -58,7 +61,9 @@ iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) static int -iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) +iter2_cb (void *cls, + const struct GNUNET_PEERSTORE_Record *record, + const char *emsg) { if (NULL != emsg) return GNUNET_NO; @@ -76,7 +81,9 @@ iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) static int -iter1_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) +iter1_cb (void *cls, + const struct GNUNET_PEERSTORE_Record *record, + const char *emsg) { if (NULL != emsg) return GNUNET_NO; -- cgit v1.2.3