gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20787 - gnunet/src/namestore


From: gnunet
Subject: [GNUnet-SVN] r20787 - gnunet/src/namestore
Date: Tue, 27 Mar 2012 16:07:35 +0200

Author: wachs
Date: 2012-03-27 16:07:35 +0200 (Tue, 27 Mar 2012)
New Revision: 20787

Modified:
   gnunet/src/namestore/gnunet-namestore.c
Log:
- added "never for expiration"


Modified: gnunet/src/namestore/gnunet-namestore.c
===================================================================
--- gnunet/src/namestore/gnunet-namestore.c     2012-03-27 14:04:52 UTC (rev 
20786)
+++ gnunet/src/namestore/gnunet-namestore.c     2012-03-27 14:07:35 UTC (rev 
20787)
@@ -25,7 +25,6 @@
  * TODO:
  * - allow users to set record options (not just 'RF_AUTHORITY')
  * - test
- * - parsing SOA, PTR and MX value specifications (and define format!)
  * - add options to list/lookup individual records
  */
 #include "platform.h"
@@ -355,7 +354,11 @@
   }
   if (NULL != expirationstring)
   {
-    if (GNUNET_OK !=
+    if (0 == strcmp (expirationstring, "never"))
+    {
+      etime = GNUNET_TIME_relative_get_forever();
+    }
+    else if (GNUNET_OK !=
        GNUNET_STRINGS_fancy_time_to_relative (expirationstring,
                                               &etime))
     {
@@ -465,7 +468,7 @@
      gettext_noop ("display records"), 0,
      &GNUNET_GETOPT_set_one, &list},   
     {'e', "expiration", "TIME",
-     gettext_noop ("expiration time for record to use (for adding only)"), 1,
+     gettext_noop ("expiration time for record to use (for adding only), 
\"never\" is possible"), 1,
      &GNUNET_GETOPT_set_string, &expirationstring},   
     {'n', "name", "NAME",
      gettext_noop ("name of the record to add/delete/display"), 1,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]