aboutsummaryrefslogtreecommitdiff
path: root/src/template
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/template
parent4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff)
downloadgnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz
gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip
const-ing of config-handles
Diffstat (limited to 'src/template')
-rw-r--r--src/template/gnunet-service-template.c5
-rw-r--r--src/template/gnunet-template.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/template/gnunet-service-template.c b/src/template/gnunet-service-template.c
index c43d681d7..3ab7d3dcc 100644
--- a/src/template/gnunet-service-template.c
+++ b/src/template/gnunet-service-template.c
@@ -34,7 +34,8 @@
34 * @param cfg configuration to use 34 * @param cfg configuration to use
35 */ 35 */
36static void 36static void
37finish (void *cls, struct GNUNET_CONFIGURATION_Handle *cfg) 37finish (void *cls,
38 const struct GNUNET_CONFIGURATION_Handle *cfg)
38{ 39{
39 /* FIXME */ 40 /* FIXME */
40} 41}
@@ -61,7 +62,7 @@ static void
61run (void *cls, 62run (void *cls,
62 struct GNUNET_SCHEDULER_Handle *sched, 63 struct GNUNET_SCHEDULER_Handle *sched,
63 struct GNUNET_SERVER_Handle *server, 64 struct GNUNET_SERVER_Handle *server,
64 struct GNUNET_CONFIGURATION_Handle *cfg) 65 const struct GNUNET_CONFIGURATION_Handle *cfg)
65{ 66{
66 /* FIXME: do setup here */ 67 /* FIXME: do setup here */
67 GNUNET_SERVER_add_handlers (server, handlers); 68 GNUNET_SERVER_add_handlers (server, handlers);
diff --git a/src/template/gnunet-template.c b/src/template/gnunet-template.c
index ea47c7f45..ad0da8159 100644
--- a/src/template/gnunet-template.c
+++ b/src/template/gnunet-template.c
@@ -46,7 +46,8 @@ static void
46run (void *cls, 46run (void *cls,
47 struct GNUNET_SCHEDULER_Handle *sched, 47 struct GNUNET_SCHEDULER_Handle *sched,
48 char *const *args, 48 char *const *args,
49 const char *cfgfile, struct GNUNET_CONFIGURATION_Handle *cfg) 49 const char *cfgfile,
50 const struct GNUNET_CONFIGURATION_Handle *cfg)
50{ 51{
51 /* main code here */ 52 /* main code here */
52} 53}