-consistently use struct GNUNET_HashCode
[oweals/gnunet.git] / src / namestore / gnunet-namestore.c
index 6bde4d90eafbd72e41d0395aea8fe3daf48bbc04..62498120149cc872f576f1613f909fa538ad29e3 100644 (file)
@@ -356,7 +356,7 @@ run (void *cls, char *const *args, const char *cfgfile,
   {
     if (0 == strcmp (expirationstring, "never"))
     {
-      etime = GNUNET_TIME_relative_get_forever();
+      etime = GNUNET_TIME_UNIT_FOREVER_REL;
     }
     else if (GNUNET_OK !=
        GNUNET_STRINGS_fancy_time_to_relative (expirationstring,
@@ -493,6 +493,9 @@ main (int argc, char *const *argv)
 
   int ret;
 
+  if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
+    return 2;
+
   GNUNET_log_setup ("gnunet-namestore", "WARNING", NULL);
   ret =
       (GNUNET_OK ==