aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-16 11:27:08 +0000
commitf736b24935d66733e9a53798fbc87dbc8aff9fca (patch)
treeb7f865216ca4b40a4a6e4535dfa6677700a27efc /src/namestore
parentc5784d2c94adcf1fe80e88c9ab1c152ce2fcbe95 (diff)
downloadgnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.tar.gz
gnunet-f736b24935d66733e9a53798fbc87dbc8aff9fca.zip
-fixing #2546
Diffstat (limited to 'src/namestore')
-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");