aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/hostlist-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostlist/hostlist-server.c')
-rw-r--r--src/hostlist/hostlist-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index b9e1e6cf1..031c7a13e 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -155,7 +155,7 @@ check_has_addr (void *cls, const struct GNUNET_HELLO_Address *address,
155{ 155{
156 int *arg = cls; 156 int *arg = cls;
157 157
158 if (GNUNET_TIME_absolute_get_remaining (expiration).rel_value == 0) 158 if (0 == GNUNET_TIME_absolute_get_remaining (expiration).rel_value_us)
159 { 159 {
160 GNUNET_STATISTICS_update (stats, 160 GNUNET_STATISTICS_update (stats,
161 gettext_noop ("expired addresses encountered"), 1, 161 gettext_noop ("expired addresses encountered"), 1,
@@ -504,7 +504,7 @@ prepare_daemon (struct MHD_Daemon *daemon_handle)
504 GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max)); 504 GNUNET_assert (MHD_YES == MHD_get_fdset (daemon_handle, &rs, &ws, &es, &max));
505 haveto = MHD_get_timeout (daemon_handle, &timeout); 505 haveto = MHD_get_timeout (daemon_handle, &timeout);
506 if (haveto == MHD_YES) 506 if (haveto == MHD_YES)
507 tv.rel_value = (uint64_t) timeout; 507 tv.rel_value_us = (uint64_t) timeout;
508 else 508 else
509 tv = GNUNET_TIME_UNIT_FOREVER_REL; 509 tv = GNUNET_TIME_UNIT_FOREVER_REL;
510 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1); 510 GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);