aboutsummaryrefslogtreecommitdiff
path: root/src/gns/gnunet-gns-gtk_zone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/gnunet-gns-gtk_zone.c')
-rw-r--r--src/gns/gnunet-gns-gtk_zone.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gns/gnunet-gns-gtk_zone.c b/src/gns/gnunet-gns-gtk_zone.c
index d526235c..c3b6a095 100644
--- a/src/gns/gnunet-gns-gtk_zone.c
+++ b/src/gns/gnunet-gns-gtk_zone.c
@@ -196,7 +196,7 @@ check_name_validity_and_commit (struct GNUNET_GNS_Context *gns, gchar *path, cha
196 else 196 else
197 rd[c].flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE; 197 rd[c].flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
198 rd[c].record_type = n_type; 198 rd[c].record_type = n_type;
199 rd[c].expiration.abs_value = n_exp_time; 199 rd[c].expiration_time = n_exp_time;
200 rd[c].data_size = data_size; 200 rd[c].data_size = data_size;
201 rd[c].data = GNUNET_malloc(data_size); 201 rd[c].data = GNUNET_malloc(data_size);
202 memcpy ((void *) rd[c].data, data, data_size); 202 memcpy ((void *) rd[c].data, data, data_size);
@@ -240,7 +240,7 @@ check_name_validity_and_commit (struct GNUNET_GNS_Context *gns, gchar *path, cha
240 GNUNET_free_non_null (rd); 240 GNUNET_free_non_null (rd);
241 } 241 }
242 rd[records - 1].record_type = GNUNET_NAMESTORE_TYPE_PSEU; 242 rd[records - 1].record_type = GNUNET_NAMESTORE_TYPE_PSEU;
243 rd[records - 1].expiration = GNUNET_TIME_UNIT_FOREVER_ABS; 243 rd[records - 1].expiration_time = UINT64_MAX;
244 rd[records - 1].flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE; 244 rd[records - 1].flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
245 } 245 }
246 else 246 else
@@ -366,7 +366,7 @@ check_name_validity_and_remove (struct GNUNET_GNS_Context *gns, gchar *path)
366 else 366 else
367 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE; 367 rd.flags = GNUNET_NAMESTORE_RF_AUTHORITY | GNUNET_NAMESTORE_RF_NONE;
368 rd.record_type = n_type; 368 rd.record_type = n_type;
369 rd.expiration.abs_value = n_exp_time; 369 rd.expiration_time = n_exp_time;
370 rd.data_size = strlen (n_value) + 1; 370 rd.data_size = strlen (n_value) + 1;
371 rd.data = GNUNET_malloc(rd.data_size); 371 rd.data = GNUNET_malloc(rd.data_size);
372 memcpy ((void *) rd.data, n_value, rd.data_size); 372 memcpy ((void *) rd.data, n_value, rd.data_size);
@@ -1039,7 +1039,7 @@ zone_iteration_proc (void *cls,
1039 for (c = 0; c < rd_count; c ++) 1039 for (c = 0; c < rd_count; c ++)
1040 { 1040 {
1041 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Record %u: type %u flags %u expiration %llu data_size %u\n", 1041 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Record %u: type %u flags %u expiration %llu data_size %u\n",
1042 c, rd[c].record_type, rd[c].flags, rd[c].expiration, rd[c].data_size); 1042 c, rd[c].record_type, rd[c].flags, rd[c].expiration_time, rd[c].data_size);
1043 1043
1044 /* Set public toggle */ 1044 /* Set public toggle */
1045 if ((rd[c].flags & GNUNET_NAMESTORE_RF_PRIVATE) == GNUNET_NAMESTORE_RF_PRIVATE) 1045 if ((rd[c].flags & GNUNET_NAMESTORE_RF_PRIVATE) == GNUNET_NAMESTORE_RF_PRIVATE)
@@ -1065,7 +1065,9 @@ zone_iteration_proc (void *cls,
1065 } 1065 }
1066 else 1066 else
1067 { 1067 {
1068 struct GNUNET_TIME_Absolute exp_abs = rd[c].expiration; 1068 struct GNUNET_TIME_Absolute exp_abs;
1069
1070 exp_abs.abs_value = rd[c].expiration_time;
1069 exp_t = exp_abs.abs_value; 1071 exp_t = exp_abs.abs_value;
1070 exp = convert_time_to_string (exp_abs); 1072 exp = convert_time_to_string (exp_abs);
1071 } 1073 }