From: Christian Grothoff Date: Wed, 27 Oct 2010 22:15:49 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~19911 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9e29339f4e16e811cdd276547ad8f5f1b53d8e7;p=oweals%2Fgnunet.git fix --- diff --git a/src/util/network.c b/src/util/network.c index e0b908e45..941fb836b 100644 --- a/src/util/network.c +++ b/src/util/network.c @@ -1048,11 +1048,11 @@ GNUNET_NETWORK_socket_select (struct GNUNET_NETWORK_FDSet *rfds, #define SAFE_FD_ISSET(fd, set) (set != NULL && FD_ISSET(fd, set)) /* calculate how long we need to wait in milliseconds */ - if (timeout.abs_value == GNUNET_TIME_UNIT_FOREVER_REL.rel_value) + if (timeout.rel_value == GNUNET_TIME_UNIT_FOREVER_REL.rel_value) ms_total = INFINITE; else - ms_total = timeout.abs_value / GNUNET_TIME_UNIT_MILLISECONDS.abs_value; + ms_total = timeout.rel_value / GNUNET_TIME_UNIT_MILLISECONDS.rel_value; /* select() may be used as a portable way to sleep */ if (!(rfds || wfds || efds))