From c0667837ee67b963714a528969c4953100f39739 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 27 Oct 2010 09:53:04 +0000 Subject: [PATCH] Refactoring gnunet time --- src/peerinfo/gnunet-service-peerinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c index d18bc739a..698c7dc30 100644 --- a/src/peerinfo/gnunet-service-peerinfo.c +++ b/src/peerinfo/gnunet-service-peerinfo.c @@ -130,7 +130,7 @@ discard_expired (void *cls, const void *addr, uint16_t addrlen) { const struct GNUNET_TIME_Absolute *now = cls; - if (now->value > expiration.value) + if (now->abs_value > expiration.abs_value) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Removing expired address of transport `%s'\n"), @@ -347,7 +347,7 @@ bind_address (const struct GNUNET_PeerIdentity *peer, delta = GNUNET_HELLO_equals (mrg, host->hello, GNUNET_TIME_absolute_get ()); - if (delta.value == GNUNET_TIME_UNIT_FOREVER_ABS.value) + if (delta.abs_value == GNUNET_TIME_UNIT_FOREVER_ABS.abs_value) { GNUNET_free (mrg); return; -- 2.25.1