diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-30 22:42:04 +0000 |
commit | 416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch) | |
tree | 987f51d9edfddc02afe1524df5e1156b920c71d4 /src/fs/gnunet-pseudonym.c | |
parent | fceec98e767bce7ad2c24dde73cdcf8837e04013 (diff) | |
download | gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip |
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/fs/gnunet-pseudonym.c')
-rw-r--r-- | src/fs/gnunet-pseudonym.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/fs/gnunet-pseudonym.c b/src/fs/gnunet-pseudonym.c index ce0d24506..412ddd2b0 100644 --- a/src/fs/gnunet-pseudonym.c +++ b/src/fs/gnunet-pseudonym.c | |||
@@ -100,7 +100,7 @@ ns_printer (void *cls, const char *name, const GNUNET_HashCode * id) | |||
100 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; | 100 | struct GNUNET_CRYPTO_HashAsciiEncoded enc; |
101 | 101 | ||
102 | GNUNET_CRYPTO_hash_to_enc (id, &enc); | 102 | GNUNET_CRYPTO_hash_to_enc (id, &enc); |
103 | fprintf (stdout, "%s (%s)\n", name, (const char *) &enc); | 103 | FPRINTF (stdout, "%s (%s)\n", name, (const char *) &enc); |
104 | } | 104 | } |
105 | 105 | ||
106 | 106 | ||
@@ -116,9 +116,9 @@ pseudo_printer (void *cls, const GNUNET_HashCode * pseudonym, | |||
116 | GNUNET_break (0); | 116 | GNUNET_break (0); |
117 | return GNUNET_OK; | 117 | return GNUNET_OK; |
118 | } | 118 | } |
119 | fprintf (stdout, "%s (%d):\n", id, rating); | 119 | FPRINTF (stdout, "%s (%d):\n", id, rating); |
120 | GNUNET_CONTAINER_meta_data_iterate (md, &EXTRACTOR_meta_data_print, stdout); | 120 | GNUNET_CONTAINER_meta_data_iterate (md, &EXTRACTOR_meta_data_print, stdout); |
121 | fprintf (stdout, "\n"); | 121 | FPRINTF (stdout, "%s", "\n"); |
122 | GNUNET_free (id); | 122 | GNUNET_free (id); |
123 | return GNUNET_OK; | 123 | return GNUNET_OK; |
124 | } | 124 | } |
@@ -133,7 +133,7 @@ post_advertising (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
133 | 133 | ||
134 | if (emsg != NULL) | 134 | if (emsg != NULL) |
135 | { | 135 | { |
136 | fprintf (stderr, "%s", emsg); | 136 | FPRINTF (stderr, "%s", emsg); |
137 | ret = 1; | 137 | ret = 1; |
138 | } | 138 | } |
139 | if (ns != NULL) | 139 | if (ns != NULL) |
@@ -237,16 +237,16 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
237 | else | 237 | else |
238 | { | 238 | { |
239 | if (ksk_uri != NULL) | 239 | if (ksk_uri != NULL) |
240 | fprintf (stderr, _("Option `%s' ignored\n"), "-k"); | 240 | FPRINTF (stderr, _("Option `%s' ignored\n"), "-k"); |
241 | } | 241 | } |
242 | } | 242 | } |
243 | } | 243 | } |
244 | else | 244 | else |
245 | { | 245 | { |
246 | if (root_identifier != NULL) | 246 | if (root_identifier != NULL) |
247 | fprintf (stderr, _("Option `%s' ignored\n"), "-r"); | 247 | FPRINTF (stderr, _("Option `%s' ignored\n"), "-r"); |
248 | if (ksk_uri != NULL) | 248 | if (ksk_uri != NULL) |
249 | fprintf (stderr, _("Option `%s' ignored\n"), "-k"); | 249 | FPRINTF (stderr, _("Option `%s' ignored\n"), "-k"); |
250 | } | 250 | } |
251 | 251 | ||
252 | post_advertising (NULL, NULL, NULL); | 252 | post_advertising (NULL, NULL, NULL); |