diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-17 10:45:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-17 10:45:23 +0000 |
commit | 7e065c18499688141eb68513058131a49344cac1 (patch) | |
tree | e441b44c8f0db8a4f214775e4945039cc820cf2f /src/peerinfo-tool | |
parent | b3ad920b6e0107c3da946fe1f2f720955dbac151 (diff) | |
download | gnunet-7e065c18499688141eb68513058131a49344cac1.tar.gz gnunet-7e065c18499688141eb68513058131a49344cac1.zip |
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index d3637af44..ddadcddd2 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -394,10 +394,10 @@ print_peer_info (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
394 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 394 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
395 | struct PrintContext *pc; | 395 | struct PrintContext *pc; |
396 | 396 | ||
397 | if (peer == NULL) | 397 | if (NULL == peer) |
398 | { | 398 | { |
399 | pic = NULL; /* end of iteration */ | 399 | pic = NULL; /* end of iteration */ |
400 | if (err_msg != NULL) | 400 | if (NULL != err_msg) |
401 | { | 401 | { |
402 | FPRINTF (stderr, | 402 | FPRINTF (stderr, |
403 | _("Error in communication with PEERINFO service: %s\n"), | 403 | _("Error in communication with PEERINFO service: %s\n"), |
@@ -812,13 +812,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
812 | char *fn; | 812 | char *fn; |
813 | 813 | ||
814 | cfg = c; | 814 | cfg = c; |
815 | if (args[0] != NULL) | 815 | if (NULL != args[0]) |
816 | { | 816 | { |
817 | FPRINTF (stderr, _("Invalid command line argument `%s'\n"), args[0]); | 817 | FPRINTF (stderr, |
818 | _("Invalid command line argument `%s'\n"), | ||
819 | args[0]); | ||
818 | return; | 820 | return; |
819 | } | 821 | } |
820 | peerinfo = GNUNET_PEERINFO_connect (cfg); | 822 | if (NULL == (peerinfo = GNUNET_PEERINFO_connect (cfg))) |
821 | if (peerinfo == NULL) | ||
822 | { | 823 | { |
823 | FPRINTF (stderr, "%s", _("Could not access PEERINFO service. Exiting.\n")); | 824 | FPRINTF (stderr, "%s", _("Could not access PEERINFO service. Exiting.\n")); |
824 | return; | 825 | return; |
@@ -834,7 +835,6 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
834 | "GNUNETD", "HOSTKEYFILE"); | 835 | "GNUNETD", "HOSTKEYFILE"); |
835 | return; | 836 | return; |
836 | } | 837 | } |
837 | |||
838 | if (NULL == (priv = GNUNET_CRYPTO_rsa_key_create_from_file (fn))) | 838 | if (NULL == (priv = GNUNET_CRYPTO_rsa_key_create_from_file (fn))) |
839 | { | 839 | { |
840 | FPRINTF (stderr, _("Loading hostkey from `%s' failed.\n"), fn); | 840 | FPRINTF (stderr, _("Loading hostkey from `%s' failed.\n"), fn); |