diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-07 07:59:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-07 07:59:00 +0000 |
commit | f0ced9f1da47d7cb9a8df6c1761da118e3ee3a99 (patch) | |
tree | 01578ff761df0cc432b711a8caa2f5e25ca5a04d /src/statistics/gnunet-statistics.c | |
parent | ea35b849436708f4402d5d4f41d4c6ce44572c05 (diff) | |
download | gnunet-f0ced9f1da47d7cb9a8df6c1761da118e3ee3a99.tar.gz gnunet-f0ced9f1da47d7cb9a8df6c1761da118e3ee3a99.zip |
-check return value
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r-- | src/statistics/gnunet-statistics.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index 85d8b8c4d..c28514144 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c | |||
@@ -184,7 +184,12 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
184 | ret = 1; | 184 | ret = 1; |
185 | return; | 185 | return; |
186 | } | 186 | } |
187 | GNUNET_STATISTICS_watch(h, subsystem, name, &printer, h); | 187 | if (GNUNET_OK != GNUNET_STATISTICS_watch (h, subsystem, name, &printer, h)) |
188 | { | ||
189 | fprintf (stderr, _("Failed to initialize watch routine\n")); | ||
190 | GNUNET_SCHEDULER_add_now (&shutdown_task, h); | ||
191 | return; | ||
192 | } | ||
188 | GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, h); | 193 | GNUNET_SCHEDULER_add_delayed(GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, h); |
189 | } | 194 | } |
190 | } | 195 | } |