aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 7fc3ad45f..fbb242569 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -277,7 +277,7 @@ display_record (void *cls,
277 const char *typestring; 277 const char *typestring;
278 char *s; 278 char *s;
279 unsigned int i; 279 unsigned int i;
280 char *etime; 280 const char *etime;
281 struct GNUNET_TIME_Absolute aex; 281 struct GNUNET_TIME_Absolute aex;
282 struct GNUNET_TIME_Relative rex; 282 struct GNUNET_TIME_Relative rex;
283 283
@@ -308,7 +308,7 @@ display_record (void *cls,
308 if (0 != (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION)) 308 if (0 != (rd[i].flags & GNUNET_NAMESTORE_RF_RELATIVE_EXPIRATION))
309 { 309 {
310 rex.rel_value = rd[i].expiration_time; 310 rex.rel_value = rd[i].expiration_time;
311 etime = GNUNET_STRINGS_relative_time_to_string (rex); 311 etime = GNUNET_STRINGS_relative_time_to_string (rex, GNUNET_YES);
312 } 312 }
313 else 313 else
314 { 314 {
@@ -320,7 +320,6 @@ display_record (void *cls,
320 ? _(/* what follows is relative expiration */ "for at least") 320 ? _(/* what follows is relative expiration */ "for at least")
321 : _(/* what follows is absolute expiration */ "until"), 321 : _(/* what follows is absolute expiration */ "until"),
322 etime); 322 etime);
323 GNUNET_free (etime);
324 GNUNET_free (s); 323 GNUNET_free (s);
325 } 324 }
326 FPRINTF (stdout, "%s", "\n"); 325 FPRINTF (stdout, "%s", "\n");