aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
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/transport/test_plugin_transport.c
parent4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff)
downloadgnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz
gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip
const-ing of config-handles
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index ef6c8a76a..981ce142a 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -67,7 +67,7 @@ struct GNUNET_SCHEDULER_Handle *sched;
67/** 67/**
68 * Our configuration. 68 * Our configuration.
69 */ 69 */
70struct GNUNET_CONFIGURATION_Handle *cfg; 70const struct GNUNET_CONFIGURATION_Handle *cfg;
71 71
72/** 72/**
73 * Number of neighbours we'd like to have. 73 * Number of neighbours we'd like to have.
@@ -135,7 +135,8 @@ void lookup (void *cls,
135 * @param cfg configuration to use 135 * @param cfg configuration to use
136 */ 136 */
137static void 137static void
138unload_plugins (void *cls, struct GNUNET_CONFIGURATION_Handle *cfg) 138unload_plugins (void *cls,
139 const struct GNUNET_CONFIGURATION_Handle *cfg)
139{ 140{
140 GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_tcp",api)); 141 GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_tcp",api));
141 if (my_private_key != NULL) 142 if (my_private_key != NULL)
@@ -256,7 +257,7 @@ run (void *cls,
256 struct GNUNET_SCHEDULER_Handle *s, 257 struct GNUNET_SCHEDULER_Handle *s,
257 char *const *args, 258 char *const *args,
258 const char *cfgfile, 259 const char *cfgfile,
259 struct GNUNET_CONFIGURATION_Handle *c) 260 const struct GNUNET_CONFIGURATION_Handle *c)
260{ 261{
261 unsigned long long tneigh; 262 unsigned long long tneigh;
262 char *keyfile; 263 char *keyfile;