aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-dht-get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-30 22:42:04 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-30 22:42:04 +0000
commit416c2f5a713b93ba689a8cd1e038682a53e6bc17 (patch)
tree987f51d9edfddc02afe1524df5e1156b920c71d4 /src/dht/gnunet-dht-get.c
parentfceec98e767bce7ad2c24dde73cdcf8837e04013 (diff)
downloadgnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.tar.gz
gnunet-416c2f5a713b93ba689a8cd1e038682a53e6bc17.zip
-LRN: use FPRINTF -- #2051
Diffstat (limited to 'src/dht/gnunet-dht-get.c')
-rw-r--r--src/dht/gnunet-dht-get.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dht/gnunet-dht-get.c b/src/dht/gnunet-dht-get.c
index 763ff8e6f..6ad4b30f8 100644
--- a/src/dht/gnunet-dht-get.c
+++ b/src/dht/gnunet-dht-get.c
@@ -129,7 +129,7 @@ get_result_iterator (void *cls, struct GNUNET_TIME_Absolute exp,
129 unsigned int put_path_length, enum GNUNET_BLOCK_Type type, 129 unsigned int put_path_length, enum GNUNET_BLOCK_Type type,
130 size_t size, const void *data) 130 size_t size, const void *data)
131{ 131{
132 fprintf (stdout, "Result %d, type %d:\n%.*s\n", result_count, type, 132 FPRINTF (stdout, "Result %d, type %d:\n%.*s\n", result_count, type,
133 (unsigned int) size, (char *) data); 133 (unsigned int) size, (char *) data);
134 result_count++; 134 result_count++;
135} 135}
@@ -155,7 +155,7 @@ run (void *cls, char *const *args, const char *cfgfile,
155 if (query_key == NULL) 155 if (query_key == NULL)
156 { 156 {
157 if (verbose) 157 if (verbose)
158 fprintf (stderr, "Must provide key for DHT GET!\n"); 158 FPRINTF (stderr, "%s", "Must provide key for DHT GET!\n");
159 ret = 1; 159 ret = 1;
160 return; 160 return;
161 } 161 }
@@ -165,12 +165,12 @@ run (void *cls, char *const *args, const char *cfgfile,
165 if (dht_handle == NULL) 165 if (dht_handle == NULL)
166 { 166 {
167 if (verbose) 167 if (verbose)
168 fprintf (stderr, "Couldn't connect to DHT service!\n"); 168 FPRINTF (stderr, "%s", "Couldn't connect to DHT service!\n");
169 ret = 1; 169 ret = 1;
170 return; 170 return;
171 } 171 }
172 else if (verbose) 172 else if (verbose)
173 fprintf (stderr, "Connected to DHT service!\n"); 173 FPRINTF (stderr, "%s", "Connected to DHT service!\n");
174 174
175 if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */ 175 if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */
176 query_type = GNUNET_BLOCK_TYPE_TEST; 176 query_type = GNUNET_BLOCK_TYPE_TEST;
@@ -182,7 +182,7 @@ run (void *cls, char *const *args, const char *cfgfile,
182 absolute_timeout = GNUNET_TIME_relative_to_absolute (timeout); 182 absolute_timeout = GNUNET_TIME_relative_to_absolute (timeout);
183 183
184 if (verbose) 184 if (verbose)
185 fprintf (stderr, "Issuing GET request for %s!\n", query_key); 185 FPRINTF (stderr, "Issuing GET request for %s!\n", query_key);
186 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining 186 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_absolute_get_remaining
187 (absolute_timeout), &cleanup_task, NULL); 187 (absolute_timeout), &cleanup_task, NULL);
188 get_handle = 188 get_handle =