diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-12-11 19:01:29 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-12-11 19:01:29 +0000 |
commit | dcc098d1fdefcb74bed0a6ff6f81347500367ab6 (patch) | |
tree | c4926c57ab59ab84b42deef8bd2005aab0c6a747 /src/cadet/gnunet-service-cadet.c | |
parent | 7fdfc20de5ff3021c8e4055672ccfc3a8bd2ed50 (diff) | |
download | gnunet-dcc098d1fdefcb74bed0a6ff6f81347500367ab6.tar.gz gnunet-dcc098d1fdefcb74bed0a6ff6f81347500367ab6.zip |
- proper CADET overhead
Diffstat (limited to 'src/cadet/gnunet-service-cadet.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c index 7ac4c6370..3f868145e 100644 --- a/src/cadet/gnunet-service-cadet.c +++ b/src/cadet/gnunet-service-cadet.c | |||
@@ -168,14 +168,18 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
168 | int | 168 | int |
169 | main (int argc, char *const *argv) | 169 | main (int argc, char *const *argv) |
170 | { | 170 | { |
171 | int ret; | ||
172 | int r; | 171 | int r; |
173 | 172 | ||
174 | shutting_down = GNUNET_NO; | 173 | shutting_down = GNUNET_NO; |
175 | r = GNUNET_SERVICE_run (argc, argv, "cadet", GNUNET_SERVICE_OPTION_NONE, &run, | 174 | r = GNUNET_SERVICE_run (argc, argv, "cadet", GNUNET_SERVICE_OPTION_NONE, &run, |
176 | NULL); | 175 | NULL); |
177 | GNUNET_free (my_private_key); | 176 | GNUNET_free (my_private_key); |
178 | ret = (GNUNET_OK == r) ? 0 : 1; | ||
179 | 177 | ||
180 | return ret; | 178 | if (GNUNET_OK != r) |
179 | { | ||
180 | FPRINTF (stderr, "GNUNET_SERVICE_run for CADET has failed!\n"); | ||
181 | return 1; | ||
182 | } | ||
183 | |||
184 | return 0; | ||
181 | } | 185 | } |