gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r22184 - gnunet-gtk/src/gns


From: gnunet
Subject: [GNUnet-SVN] r22184 - gnunet-gtk/src/gns
Date: Thu, 21 Jun 2012 15:02:35 +0200

Author: grothoff
Date: 2012-06-21 15:02:35 +0200 (Thu, 21 Jun 2012)
New Revision: 22184

Modified:
   gnunet-gtk/src/gns/gnunet-gns-gtk.c
   gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
Log:
-fixing compilation errors

Modified: gnunet-gtk/src/gns/gnunet-gns-gtk.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk.c 2012-06-21 11:35:54 UTC (rev 22183)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk.c 2012-06-21 13:02:35 UTC (rev 22184)
@@ -241,7 +241,7 @@
   {
 
     rd.record_type = GNUNET_NAMESTORE_TYPE_PSEU;
-    rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+    rd.expiration_time = UINT64_MAX;
     rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY;
     rd.data_size = strlen (pseu) + 1;
     rd.data = strdup (pseu);

Modified: gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c    2012-06-21 11:35:54 UTC (rev 
22183)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c    2012-06-21 13:02:35 UTC (rev 
22184)
@@ -196,7 +196,7 @@
       else
         rd[c].flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
       rd[c].record_type = n_type;
-      rd[c].expiration.abs_value = n_exp_time;
+      rd[c].expiration_time = n_exp_time;
       rd[c].data_size = data_size;
       rd[c].data = GNUNET_malloc(data_size);
       memcpy ((void *) rd[c].data, data, data_size);
@@ -240,7 +240,7 @@
           GNUNET_free_non_null (rd);
         }
         rd[records - 1].record_type = GNUNET_NAMESTORE_TYPE_PSEU;
-        rd[records - 1].expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
+        rd[records - 1].expiration_time = UINT64_MAX;
         rd[records - 1].flags = GNUNET_NAMESTORE_RF_AUTHORITY | 
GNUNET_NAMESTORE_RF_NONE;
       }
       else
@@ -366,7 +366,7 @@
       else
         rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
       rd.record_type = n_type;
-      rd.expiration.abs_value = n_exp_time;
+      rd.expiration_time = n_exp_time;
       rd.data_size = strlen (n_value) + 1;
       rd.data = GNUNET_malloc(rd.data_size);
       memcpy ((void *) rd.data, n_value, rd.data_size);
@@ -1039,7 +1039,7 @@
   for (c = 0; c < rd_count; c ++)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Record %u: type %u flags %u 
expiration %llu data_size %u\n",
-        c, rd[c].record_type, rd[c].flags, rd[c].expiration, rd[c].data_size);
+        c, rd[c].record_type, rd[c].flags, rd[c].expiration_time, 
rd[c].data_size);
 
     /* Set public toggle */
     if ((rd[c].flags & GNUNET_NAMESTORE_RF_PRIVATE) == 
GNUNET_NAMESTORE_RF_PRIVATE)
@@ -1065,7 +1065,9 @@
     }
     else
     {
-      struct GNUNET_TIME_Absolute exp_abs = rd[c].expiration;
+      struct GNUNET_TIME_Absolute exp_abs;
+
+      exp_abs.abs_value = rd[c].expiration_time;
       exp_t = exp_abs.abs_value;
       exp = convert_time_to_string (exp_abs);
     }




reply via email to

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