summaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-24 11:04:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-24 11:04:43 +0000
commit8fbd1ddbe17f6141d72f661fde108dbc1089f17b (patch)
treedc10b755763144a533968e9f71407072d3b30a8d /src/util/service.c
parenta3bafed89534fb9fc1bcfcd10f512ff3cd150a63 (diff)
downloadgnunet-8fbd1ddbe17f6141d72f661fde108dbc1089f17b.tar.gz
gnunet-8fbd1ddbe17f6141d72f661fde108dbc1089f17b.zip
-w32 bugfix -- compiler warning too
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 3e72354ce..ea92f7cea 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -85,10 +85,19 @@ struct IPv6NetworkSet
85}; 85};
86 86
87 87
88/**
89 * Start task that may speed up our system clock artificially
90 *
91 * @param cfg configuration to use
92 * @return GNUNET_OK on success, GNUNET_SYSERR if the speedup was not configured
93 */
88int 94int
89GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg); 95GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg);
90 96
91int 97/**
98 * Stop tasks that modify clock behavior.
99 */
100void
92GNUNET_SPEEDUP_stop_ (void); 101GNUNET_SPEEDUP_stop_ (void);
93 102
94 103
@@ -1506,7 +1515,7 @@ service_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1506 1515
1507 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason)) 1516 if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
1508 return; 1517 return;
1509 GNUNET_SPEEDUP_start_ (sctx->cfg); 1518 (void) GNUNET_SPEEDUP_start_ (sctx->cfg);
1510 GNUNET_RESOLVER_connect (sctx->cfg); 1519 GNUNET_RESOLVER_connect (sctx->cfg);
1511 if (NULL != sctx->lsocks) 1520 if (NULL != sctx->lsocks)
1512 sctx->server = 1521 sctx->server =