diff options
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 337a9b2ab..21c996661 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -148,7 +148,7 @@ print_peer_info (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
148 | if (peer == NULL) | 148 | if (peer == NULL) |
149 | { | 149 | { |
150 | if (err_msg != NULL) | 150 | if (err_msg != NULL) |
151 | fprintf (stderr, _("Error in communication with PEERINFO service\n")); | 151 | FPRINTF (stderr, "%s", _("Error in communication with PEERINFO service\n")); |
152 | GNUNET_PEERINFO_disconnect (peerinfo); | 152 | GNUNET_PEERINFO_disconnect (peerinfo); |
153 | return; | 153 | return; |
154 | } | 154 | } |
@@ -191,7 +191,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
191 | cfg = c; | 191 | cfg = c; |
192 | if (args[0] != NULL) | 192 | if (args[0] != NULL) |
193 | { | 193 | { |
194 | fprintf (stderr, _("Invalid command line argument `%s'\n"), args[0]); | 194 | FPRINTF (stderr, _("Invalid command line argument `%s'\n"), args[0]); |
195 | return; | 195 | return; |
196 | } | 196 | } |
197 | if (get_self != GNUNET_YES) | 197 | if (get_self != GNUNET_YES) |
@@ -199,7 +199,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
199 | peerinfo = GNUNET_PEERINFO_connect (cfg); | 199 | peerinfo = GNUNET_PEERINFO_connect (cfg); |
200 | if (peerinfo == NULL) | 200 | if (peerinfo == NULL) |
201 | { | 201 | { |
202 | fprintf (stderr, _("Could not access PEERINFO service. Exiting.\n")); | 202 | FPRINTF (stderr, "%s", _("Could not access PEERINFO service. Exiting.\n")); |
203 | return; | 203 | return; |
204 | } | 204 | } |
205 | GNUNET_PEERINFO_iterate (peerinfo, NULL, | 205 | GNUNET_PEERINFO_iterate (peerinfo, NULL, |
@@ -213,14 +213,14 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
213 | GNUNET_CONFIGURATION_get_value_filename (cfg, "GNUNETD", "HOSTKEY", | 213 | GNUNET_CONFIGURATION_get_value_filename (cfg, "GNUNETD", "HOSTKEY", |
214 | &fn)) | 214 | &fn)) |
215 | { | 215 | { |
216 | fprintf (stderr, _("Could not find option `%s:%s' in configuration.\n"), | 216 | FPRINTF (stderr, _("Could not find option `%s:%s' in configuration.\n"), |
217 | "GNUNETD", "HOSTKEYFILE"); | 217 | "GNUNETD", "HOSTKEYFILE"); |
218 | return; | 218 | return; |
219 | } | 219 | } |
220 | priv = GNUNET_CRYPTO_rsa_key_create_from_file (fn); | 220 | priv = GNUNET_CRYPTO_rsa_key_create_from_file (fn); |
221 | if (priv == NULL) | 221 | if (priv == NULL) |
222 | { | 222 | { |
223 | fprintf (stderr, _("Loading hostkey from `%s' failed.\n"), fn); | 223 | FPRINTF (stderr, _("Loading hostkey from `%s' failed.\n"), fn); |
224 | GNUNET_free (fn); | 224 | GNUNET_free (fn); |
225 | return; | 225 | return; |
226 | } | 226 | } |