aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 14:44:08 +0000
commite8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch)
tree4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/fs
parentae8cb91d9961899075a892a3110204bc139c2eb6 (diff)
downloadgnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz
gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip
fixing compiler warnings
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_download.c2
-rw-r--r--src/fs/fs_namespace.c8
-rw-r--r--src/fs/fs_publish.c5
-rw-r--r--src/fs/gnunet-service-fs_lc.c2
-rw-r--r--src/fs/gnunet-service-fs_push.c2
5 files changed, 12 insertions, 7 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index e8b632a3f..42677af8a 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -2096,7 +2096,7 @@ create_download_context (struct GNUNET_FS_Handle *h,
2096 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2096 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2097 "Starting download %p, %u bytes at offset %llu\n", 2097 "Starting download %p, %u bytes at offset %llu\n",
2098 dc, 2098 dc,
2099 (unsigned long long) length, 2099 (unsigned int) length,
2100 (unsigned long long) offset); 2100 (unsigned long long) offset);
2101 dc->h = h; 2101 dc->h = h;
2102 dc->uri = GNUNET_FS_uri_dup (uri); 2102 dc->uri = GNUNET_FS_uri_dup (uri);
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index 07f4a5653..69876b8b5 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -204,7 +204,9 @@ write_update_information_graph (struct GNUNET_FS_UpdateInformationGraph *uig)
204 if (NULL == wh) 204 if (NULL == wh)
205 { 205 {
206 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 206 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
207 _("Failed to open `%s' for writing: %s\n"), STRERROR (errno)); 207 _("Failed to open `%s' for writing: %s\n"),
208 fn,
209 STRERROR (errno));
208 GNUNET_free (fn); 210 GNUNET_free (fn);
209 return; 211 return;
210 } 212 }
@@ -226,7 +228,9 @@ write_update_information_graph (struct GNUNET_FS_UpdateInformationGraph *uig)
226 } 228 }
227END: 229END:
228 if (GNUNET_OK != GNUNET_BIO_write_close (wh)) 230 if (GNUNET_OK != GNUNET_BIO_write_close (wh))
229 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to write `%s': %s\n"), 231 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
232 _("Failed to write `%s': %s\n"),
233 fn,
230 STRERROR (errno)); 234 STRERROR (errno));
231 GNUNET_free (fn); 235 GNUNET_free (fn);
232} 236}
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index 80843006e..530a7ac9b 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -508,8 +508,9 @@ block_proc (void *cls,
508 { 508 {
509 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 509 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
510 "Indexing block `%s' for offset %llu with index size %u\n", 510 "Indexing block `%s' for offset %llu with index size %u\n",
511 GNUNET_h2s (&chk->query), (unsigned long long) offset, 511 GNUNET_h2s (&chk->query),
512 sizeof (struct OnDemandBlock)); 512 (unsigned long long) offset,
513 (unsigned int) sizeof (struct OnDemandBlock));
513 odb.offset = GNUNET_htonll (offset); 514 odb.offset = GNUNET_htonll (offset);
514 odb.file_id = p->data.file.file_id; 515 odb.file_id = p->data.file.file_id;
515 GNUNET_assert (pc->qre == NULL); 516 GNUNET_assert (pc->qre == NULL);
diff --git a/src/fs/gnunet-service-fs_lc.c b/src/fs/gnunet-service-fs_lc.c
index 2706aea30..e61442aa3 100644
--- a/src/fs/gnunet-service-fs_lc.c
+++ b/src/fs/gnunet-service-fs_lc.c
@@ -279,7 +279,7 @@ client_response_handler (void *cls,
279 } 279 }
280 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 280 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
281 "Queued reply to query `%s' for local client\n", 281 "Queued reply to query `%s' for local client\n",
282 GNUNET_h2s (&prd->query), (unsigned int) prd->type); 282 GNUNET_h2s (&prd->query));
283 if (GNUNET_BLOCK_EVALUATION_OK_LAST != eval) 283 if (GNUNET_BLOCK_EVALUATION_OK_LAST != eval)
284 { 284 {
285 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 285 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/fs/gnunet-service-fs_push.c b/src/fs/gnunet-service-fs_push.c
index a76a3827c..d7a15fad6 100644
--- a/src/fs/gnunet-service-fs_push.c
+++ b/src/fs/gnunet-service-fs_push.c
@@ -296,7 +296,7 @@ transmit_content (struct MigrationReadyPeer *peer,
296 } 296 }
297 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 297 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
298 "Asking for transmission of %u bytes to %s for migration\n", 298 "Asking for transmission of %u bytes to %s for migration\n",
299 msize, 299 (unsigned int) msize,
300 GNUNET_i2s (GSF_connected_peer_get_identity2_(peer->peer))); 300 GNUNET_i2s (GSF_connected_peer_get_identity2_(peer->peer)));
301 peer->th = GSF_peer_transmit_ (peer->peer, 301 peer->th = GSF_peer_transmit_ (peer->peer,
302 GNUNET_NO, 0 /* priority */ , 302 GNUNET_NO, 0 /* priority */ ,