diff options
Diffstat (limited to 'src/dht/gnunet-dht-put.c')
-rw-r--r-- | src/dht/gnunet-dht-put.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dht/gnunet-dht-put.c b/src/dht/gnunet-dht-put.c index 079a8866e..ef5ae5ea7 100644 --- a/src/dht/gnunet-dht-put.c +++ b/src/dht/gnunet-dht-put.c | |||
@@ -97,7 +97,7 @@ void | |||
97 | message_sent_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 97 | message_sent_cont (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
98 | { | 98 | { |
99 | if (verbose) | 99 | if (verbose) |
100 | fprintf (stderr, _("PUT request sent!\n")); | 100 | FPRINTF (stderr, "%s", _("PUT request sent!\n")); |
101 | GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); | 101 | GNUNET_SCHEDULER_add_now (&shutdown_task, NULL); |
102 | } | 102 | } |
103 | 103 | ||
@@ -121,7 +121,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
121 | 121 | ||
122 | if ((query_key == NULL) || (data == NULL)) | 122 | if ((query_key == NULL) || (data == NULL)) |
123 | { | 123 | { |
124 | fprintf (stderr, _("Must provide KEY and DATA for DHT put!\n")); | 124 | FPRINTF (stderr, "%s", _("Must provide KEY and DATA for DHT put!\n")); |
125 | ret = 1; | 125 | ret = 1; |
126 | return; | 126 | return; |
127 | } | 127 | } |
@@ -129,12 +129,12 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
129 | dht_handle = GNUNET_DHT_connect (cfg, 1); | 129 | dht_handle = GNUNET_DHT_connect (cfg, 1); |
130 | if (dht_handle == NULL) | 130 | if (dht_handle == NULL) |
131 | { | 131 | { |
132 | fprintf (stderr, _("Could not connect to %s service!\n"), "DHT"); | 132 | FPRINTF (stderr, _("Could not connect to %s service!\n"), "DHT"); |
133 | ret = 1; | 133 | ret = 1; |
134 | return; | 134 | return; |
135 | } | 135 | } |
136 | else if (verbose) | 136 | else if (verbose) |
137 | fprintf (stderr, _("Connected to %s service!\n"), "DHT"); | 137 | FPRINTF (stderr, _("Connected to %s service!\n"), "DHT"); |
138 | 138 | ||
139 | if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */ | 139 | if (query_type == GNUNET_BLOCK_TYPE_ANY) /* Type of data not set */ |
140 | query_type = GNUNET_BLOCK_TYPE_TEST; | 140 | query_type = GNUNET_BLOCK_TYPE_TEST; |
@@ -149,7 +149,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
149 | expiration_seconds)); | 149 | expiration_seconds)); |
150 | 150 | ||
151 | if (verbose) | 151 | if (verbose) |
152 | fprintf (stderr, _("Issuing put request for `%s' with data `%s'!\n"), | 152 | FPRINTF (stderr, _("Issuing put request for `%s' with data `%s'!\n"), |
153 | query_key, data); | 153 | query_key, data); |
154 | GNUNET_DHT_put (dht_handle, &key, replication, GNUNET_DHT_RO_NONE, query_type, | 154 | GNUNET_DHT_put (dht_handle, &key, replication, GNUNET_DHT_RO_NONE, query_type, |
155 | strlen (data), data, expiration, timeout, &message_sent_cont, | 155 | strlen (data), data, expiration, timeout, &message_sent_cont, |