gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32232 - gnunet/src/hello


From: gnunet
Subject: [GNUnet-SVN] r32232 - gnunet/src/hello
Date: Wed, 5 Feb 2014 18:24:27 +0100

Author: bartpolot
Date: 2014-02-05 18:24:27 +0100 (Wed, 05 Feb 2014)
New Revision: 32232

Modified:
   gnunet/src/hello/hello.c
Log:
Fixed GNUNET_HELLO_get_last_expiration, as it always returned min (EPOCH, 
expiration times), so: EPOCH

Modified: gnunet/src/hello/hello.c
===================================================================
--- gnunet/src/hello/hello.c    2014-02-05 17:24:27 UTC (rev 32231)
+++ gnunet/src/hello/hello.c    2014-02-05 17:24:27 UTC (rev 32232)
@@ -685,12 +685,12 @@
 
 
 static int
-find_min_expire (void *cls, const struct GNUNET_HELLO_Address *address,
+find_max_expire (void *cls, const struct GNUNET_HELLO_Address *address,
                  struct GNUNET_TIME_Absolute expiration)
 {
-  struct GNUNET_TIME_Absolute *min = cls;
+  struct GNUNET_TIME_Absolute *max = cls;
 
-  *min = GNUNET_TIME_absolute_min (*min, expiration);
+  *max = GNUNET_TIME_absolute_max (*max, expiration);
   return GNUNET_OK;
 }
 
@@ -707,7 +707,7 @@
   struct GNUNET_TIME_Absolute ret;
 
   ret.abs_value_us = 0;
-  GNUNET_HELLO_iterate_addresses (msg, GNUNET_NO, &find_min_expire, &ret);
+  GNUNET_HELLO_iterate_addresses (msg, GNUNET_NO, &find_max_expire, &ret);
   return ret;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]