aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-07-26 21:20:11 +0000
committerChristian Grothoff <christian@grothoff.org>2009-07-26 21:20:11 +0000
commit7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420 (patch)
treedc415457e57f9cfda58eb22ca400a941ebcf602e /src/peerinfo
parent4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff)
downloadgnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz
gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip
const-ing of config-handles
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-peerinfo.c3
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c2
-rw-r--r--src/peerinfo/peerinfo_api.c4
-rw-r--r--src/peerinfo/test_peerinfo_api.c3
4 files changed, 7 insertions, 5 deletions
diff --git a/src/peerinfo/gnunet-peerinfo.c b/src/peerinfo/gnunet-peerinfo.c
index 6c737c88a..3ade1468f 100644
--- a/src/peerinfo/gnunet-peerinfo.c
+++ b/src/peerinfo/gnunet-peerinfo.c
@@ -70,7 +70,8 @@ static void
70run (void *cls, 70run (void *cls,
71 struct GNUNET_SCHEDULER_Handle *sched, 71 struct GNUNET_SCHEDULER_Handle *sched,
72 char *const *args, 72 char *const *args,
73 const char *cfgfile, struct GNUNET_CONFIGURATION_Handle *cfg) 73 const char *cfgfile,
74 const struct GNUNET_CONFIGURATION_Handle *cfg)
74{ 75{
75 struct GNUNET_CRYPTO_RsaPrivateKey *priv; 76 struct GNUNET_CRYPTO_RsaPrivateKey *priv;
76 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; 77 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub;
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 6b709e84a..3a6030fda 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -652,7 +652,7 @@ static void
652run (void *cls, 652run (void *cls,
653 struct GNUNET_SCHEDULER_Handle *sched, 653 struct GNUNET_SCHEDULER_Handle *sched,
654 struct GNUNET_SERVER_Handle *server, 654 struct GNUNET_SERVER_Handle *server,
655 struct GNUNET_CONFIGURATION_Handle *cfg) 655 const struct GNUNET_CONFIGURATION_Handle *cfg)
656{ 656{
657 GNUNET_assert (GNUNET_OK == 657 GNUNET_assert (GNUNET_OK ==
658 GNUNET_CONFIGURATION_get_value_filename (cfg, 658 GNUNET_CONFIGURATION_get_value_filename (cfg,
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c
index ba5ade199..28865edc6 100644
--- a/src/peerinfo/peerinfo_api.c
+++ b/src/peerinfo/peerinfo_api.c
@@ -79,7 +79,7 @@ copy_and_free (void *cls, size_t size, void *buf)
79 * @param expiration when the HELLO will expire 79 * @param expiration when the HELLO will expire
80 */ 80 */
81void 81void
82GNUNET_PEERINFO_add_peer (struct GNUNET_CONFIGURATION_Handle *cfg, 82GNUNET_PEERINFO_add_peer (const struct GNUNET_CONFIGURATION_Handle *cfg,
83 struct GNUNET_SCHEDULER_Handle *sched, 83 struct GNUNET_SCHEDULER_Handle *sched,
84 const struct GNUNET_PeerIdentity *peer, 84 const struct GNUNET_PeerIdentity *peer,
85 const struct GNUNET_HELLO_Message *hello) 85 const struct GNUNET_HELLO_Message *hello)
@@ -251,7 +251,7 @@ copy_then_receive (void *cls, size_t size, void *buf)
251 * @param callback_cls closure for callback 251 * @param callback_cls closure for callback
252 */ 252 */
253void 253void
254GNUNET_PEERINFO_for_all (struct GNUNET_CONFIGURATION_Handle *cfg, 254GNUNET_PEERINFO_for_all (const struct GNUNET_CONFIGURATION_Handle *cfg,
255 struct GNUNET_SCHEDULER_Handle *sched, 255 struct GNUNET_SCHEDULER_Handle *sched,
256 const struct GNUNET_PeerIdentity *peer, 256 const struct GNUNET_PeerIdentity *peer,
257 int trust_delta, 257 int trust_delta,
diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c
index c0b6847b6..b91241979 100644
--- a/src/peerinfo/test_peerinfo_api.c
+++ b/src/peerinfo/test_peerinfo_api.c
@@ -103,7 +103,8 @@ static void
103run (void *cls, 103run (void *cls,
104 struct GNUNET_SCHEDULER_Handle *sched, 104 struct GNUNET_SCHEDULER_Handle *sched,
105 char *const *args, 105 char *const *args,
106 const char *cfgfile, struct GNUNET_CONFIGURATION_Handle *cfg) 106 const char *cfgfile,
107 const struct GNUNET_CONFIGURATION_Handle *cfg)
107{ 108{
108 struct GNUNET_HELLO_Message *hello; 109 struct GNUNET_HELLO_Message *hello;
109 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; 110 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey;