aboutsummaryrefslogtreecommitdiff
path: root/src/peerstore/gnunet-service-peerstore.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/gnunet-service-peerstore.c
parentd19064a18f3fcf35c94d7f56485e41fb3425d066 (diff)
downloadgnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.tar.gz
gnunet-fb12af8319a84389a536ab2f3735daf3b24f11bd.zip
-use const in peerstore callback
Diffstat (limited to 'src/peerstore/gnunet-service-peerstore.c')
-rw-r--r--src/peerstore/gnunet-service-peerstore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/peerstore/gnunet-service-peerstore.c b/src/peerstore/gnunet-service-peerstore.c
index f8ec631b9..bdd93e63a 100644
--- a/src/peerstore/gnunet-service-peerstore.c
+++ b/src/peerstore/gnunet-service-peerstore.c
@@ -239,7 +239,9 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
239 * @return #GNUNET_YES to continue iteration 239 * @return #GNUNET_YES to continue iteration
240 */ 240 */
241static int 241static int
242record_iterator (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg) 242record_iterator (void *cls,
243 const struct GNUNET_PEERSTORE_Record *record,
244 const char *emsg)
243{ 245{
244 struct GNUNET_PEERSTORE_Record *cls_record = cls; 246 struct GNUNET_PEERSTORE_Record *cls_record = cls;
245 struct StoreRecordMessage *srm; 247 struct StoreRecordMessage *srm;
@@ -410,7 +412,7 @@ handle_iterate (void *cls, struct GNUNET_SERVER_Client *client,
410 412
411 413
412/** 414/**
413 * Continuation of store_record called by the peerstore plugin 415 * Continuation of store_record called by the peerstore plugin
414 * 416 *
415 * @param cls closure 417 * @param cls closure
416 * @param success result 418 * @param success result