diff options
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r-- | src/namestore/gnunet-namestore.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 50a8601f8..d0f68b78e 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c | |||
@@ -345,12 +345,12 @@ display_record (void *cls, | |||
345 | } | 345 | } |
346 | if (0 != (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) | 346 | if (0 != (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) |
347 | { | 347 | { |
348 | rex.rel_value = rd[i].expiration_time; | 348 | rex.rel_value_us = rd[i].expiration_time; |
349 | etime = GNUNET_STRINGS_relative_time_to_string (rex, GNUNET_YES); | 349 | etime = GNUNET_STRINGS_relative_time_to_string (rex, GNUNET_YES); |
350 | } | 350 | } |
351 | else | 351 | else |
352 | { | 352 | { |
353 | aex.abs_value = rd[i].expiration_time; | 353 | aex.abs_value_us = rd[i].expiration_time; |
354 | etime = GNUNET_STRINGS_absolute_time_to_string (aex); | 354 | etime = GNUNET_STRINGS_absolute_time_to_string (aex); |
355 | } | 355 | } |
356 | FPRINTF (stdout, "\t%s: %s (%s %s)\n", typestring, s, | 356 | FPRINTF (stdout, "\t%s: %s (%s %s)\n", typestring, s, |
@@ -418,12 +418,12 @@ get_existing_record (void *cls, | |||
418 | rde->record_type = type; | 418 | rde->record_type = type; |
419 | if (GNUNET_YES == etime_is_rel) | 419 | if (GNUNET_YES == etime_is_rel) |
420 | { | 420 | { |
421 | rde->expiration_time = etime_rel.rel_value; | 421 | rde->expiration_time = etime_rel.rel_value_us; |
422 | rde->flags |= GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; | 422 | rde->flags |= GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; |
423 | } | 423 | } |
424 | else if (GNUNET_NO == etime_is_rel) | 424 | else if (GNUNET_NO == etime_is_rel) |
425 | { | 425 | { |
426 | rde->expiration_time = etime_abs.abs_value; | 426 | rde->expiration_time = etime_abs.abs_value_us; |
427 | } | 427 | } |
428 | if (1 != nonauthority) | 428 | if (1 != nonauthority) |
429 | rde->flags |= GNUNET_NAMESTORE_RF_AUTHORITY; | 429 | rde->flags |= GNUNET_NAMESTORE_RF_AUTHORITY; |
@@ -658,13 +658,13 @@ testservice_task (void *cls, | |||
658 | rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; | 658 | rd.record_type = GNUNET_NAMESTORE_TYPE_PKEY; |
659 | if (GNUNET_YES == etime_is_rel) | 659 | if (GNUNET_YES == etime_is_rel) |
660 | { | 660 | { |
661 | rd.expiration_time = etime_rel.rel_value; | 661 | rd.expiration_time = etime_rel.rel_value_us; |
662 | rd.flags |= GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; | 662 | rd.flags |= GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION; |
663 | } | 663 | } |
664 | else if (GNUNET_NO == etime_is_rel) | 664 | else if (GNUNET_NO == etime_is_rel) |
665 | rd.expiration_time = etime_abs.abs_value; | 665 | rd.expiration_time = etime_abs.abs_value_us; |
666 | else | 666 | else |
667 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value; | 667 | rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us; |
668 | if (1 != nonauthority) | 668 | if (1 != nonauthority) |
669 | rd.flags |= GNUNET_NAMESTORE_RF_AUTHORITY; | 669 | rd.flags |= GNUNET_NAMESTORE_RF_AUTHORITY; |
670 | add_qe_uri = GNUNET_NAMESTORE_record_put_by_authority (ns, | 670 | add_qe_uri = GNUNET_NAMESTORE_record_put_by_authority (ns, |