gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31870 - gnunet/src/peerinfo-tool


From: gnunet
Subject: [GNUnet-SVN] r31870 - gnunet/src/peerinfo-tool
Date: Fri, 10 Jan 2014 05:10:22 +0100

Author: bartpolot
Date: 2014-01-10 05:10:22 +0100 (Fri, 10 Jan 2014)
New Revision: 31870

Modified:
   gnunet/src/peerinfo-tool/gnunet-peerinfo.c
Log:
- fix error messages


Modified: gnunet/src/peerinfo-tool/gnunet-peerinfo.c
===================================================================
--- gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-01-10 04:07:55 UTC (rev 
31869)
+++ gnunet/src/peerinfo-tool/gnunet-peerinfo.c  2014-01-10 04:10:22 UTC (rev 
31870)
@@ -654,12 +654,11 @@
   if ( (GNUNET_YES == get_self) || (GNUNET_YES == get_uri) || (NULL != 
dump_hello) )
   {
     /* load private key */
-    if (GNUNET_OK !=
-       GNUNET_CONFIGURATION_get_value_filename (cfg, "PEER", "PRIVATE_KEY",
-                                                &fn))
+    if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "PEER",
+                                                              "PRIVATE_KEY",
+                                                               &fn))
     {
-      FPRINTF (stderr, _("Could not find option `%s:%s' in configuration.\n"),
-              "GNUNETD", "HOSTKEYFILE");
+      GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "PEER", 
"PRIVATE_KEY");
       return;
     }
     if (NULL == (priv = GNUNET_CRYPTO_eddsa_key_create_from_file (fn)))
@@ -670,7 +669,7 @@
     }
     GNUNET_free (fn);
     GNUNET_CRYPTO_eddsa_key_get_public (priv,
-                                                   
&my_peer_identity.public_key);
+                                        &my_peer_identity.public_key);
     GNUNET_free (priv);
   }
 
@@ -780,9 +779,9 @@
     {'i', "info", NULL,
      gettext_noop ("list all known peers"),
      0, &GNUNET_GETOPT_set_one, &get_info},
-         {'d', "dump-hello", NULL,
-                gettext_noop ("dump hello to file"),
-                1, &GNUNET_GETOPT_set_string, &dump_hello},
+    {'d', "dump-hello", NULL,
+     gettext_noop ("dump hello to file"),
+     1, &GNUNET_GETOPT_set_string, &dump_hello},
     {'g', "get-hello", NULL,
      gettext_noop ("also output HELLO uri(s)"),
      0, &GNUNET_GETOPT_set_one, &get_uri},




reply via email to

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