diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-26 21:20:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-26 21:20:11 +0000 |
commit | 7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420 (patch) | |
tree | dc415457e57f9cfda58eb22ca400a941ebcf602e /src/template | |
parent | 4f8ba34b32328bd99b2f0c2ff9a2372712022b32 (diff) | |
download | gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.tar.gz gnunet-7bc466bbdb8b64cac68c5ee59eb7ab6b9d85c420.zip |
const-ing of config-handles
Diffstat (limited to 'src/template')
-rw-r--r-- | src/template/gnunet-service-template.c | 5 | ||||
-rw-r--r-- | src/template/gnunet-template.c | 3 |
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 | */ |
36 | static void | 36 | static void |
37 | finish (void *cls, struct GNUNET_CONFIGURATION_Handle *cfg) | 37 | finish (void *cls, |
38 | const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
38 | { | 39 | { |
39 | /* FIXME */ | 40 | /* FIXME */ |
40 | } | 41 | } |
@@ -61,7 +62,7 @@ static void | |||
61 | run (void *cls, | 62 | run (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 | |||
46 | run (void *cls, | 46 | run (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 | } |