diff options
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/plugin_gnsrecord_gns.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index 694dc6351..beeeda295 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c | |||
@@ -133,10 +133,7 @@ gns_value_to_string (void *cls, | |||
133 | return box_str; | 133 | return box_str; |
134 | } | 134 | } |
135 | case GNUNET_GNSRECORD_TYPE_TOMBSTONE: { | 135 | case GNUNET_GNSRECORD_TYPE_TOMBSTONE: { |
136 | const struct GNUNET_GNSRECORD_TombstoneRecord *ts = data; | 136 | return GNUNET_strdup ("\u271E"); |
137 | struct GNUNET_TIME_Absolute tod; | ||
138 | tod = GNUNET_TIME_absolute_ntoh (ts->time_of_death); | ||
139 | return GNUNET_strdup (GNUNET_STRINGS_absolute_time_to_string (tod)); | ||
140 | } | 137 | } |
141 | default: | 138 | default: |
142 | return NULL; | 139 | return NULL; |
@@ -303,15 +300,8 @@ gns_string_to_value (void *cls, | |||
303 | return GNUNET_OK; | 300 | return GNUNET_OK; |
304 | } | 301 | } |
305 | case GNUNET_GNSRECORD_TYPE_TOMBSTONE: { | 302 | case GNUNET_GNSRECORD_TYPE_TOMBSTONE: { |
306 | struct GNUNET_TIME_Absolute tod; | 303 | *data_size = 0; |
307 | struct GNUNET_TIME_AbsoluteNBO *tod_nbo; | 304 | *data = NULL; |
308 | if (GNUNET_OK != GNUNET_STRINGS_fancy_time_to_absolute (s, | ||
309 | &tod)) | ||
310 | return GNUNET_SYSERR; | ||
311 | tod_nbo = GNUNET_new (struct GNUNET_TIME_AbsoluteNBO); | ||
312 | *tod_nbo = GNUNET_TIME_absolute_hton (tod); | ||
313 | *data_size = sizeof (*tod_nbo); | ||
314 | *data = tod_nbo; | ||
315 | return GNUNET_OK; | 305 | return GNUNET_OK; |
316 | } | 306 | } |
317 | 307 | ||