aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index a9e950363..593250e2c 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -328,9 +328,9 @@ get_respect_filename (const struct GNUNET_PeerIdentity *id)
328{ 328{
329 char *fn; 329 char *fn;
330 330
331 GNUNET_asprintf (&fn, 331 GNUNET_asprintf (&fn,
332 "%s%s%s", 332 "%s%s%s",
333 respectDirectory, 333 respectDirectory,
334 DIR_SEPARATOR_STR, 334 DIR_SEPARATOR_STR,
335 GNUNET_i2s_full (id)); 335 GNUNET_i2s_full (id));
336 return fn; 336 return fn;
@@ -542,7 +542,7 @@ ats_reserve_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
542 542
543 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 543 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
544 "Reserved %d bytes / need to wait %s for reservation\n", 544 "Reserved %d bytes / need to wait %s for reservation\n",
545 (int) amount, 545 (int) amount,
546 GNUNET_STRINGS_relative_time_to_string (res_delay, GNUNET_YES)); 546 GNUNET_STRINGS_relative_time_to_string (res_delay, GNUNET_YES));
547 cp->rc = NULL; 547 cp->rc = NULL;
548 if (0 == amount) 548 if (0 == amount)
@@ -597,7 +597,7 @@ GSF_peer_connect_handler_ (const struct GNUNET_PeerIdentity *peer)
597 GNUNET_free (fn); 597 GNUNET_free (fn);
598 cp->request_map = GNUNET_CONTAINER_multihashmap_create (128, GNUNET_NO); 598 cp->request_map = GNUNET_CONTAINER_multihashmap_create (128, GNUNET_NO);
599 GNUNET_break (GNUNET_OK == 599 GNUNET_break (GNUNET_OK ==
600 GNUNET_CONTAINER_multipeermap_put (cp_map, 600 GNUNET_CONTAINER_multipeermap_put (cp_map,
601 GSF_connected_peer_get_identity2_ (cp), 601 GSF_connected_peer_get_identity2_ (cp),
602 cp, 602 cp,
603 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); 603 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
@@ -682,7 +682,7 @@ GSF_handle_p2p_migration_stop_ (void *cls,
682 bt = GNUNET_TIME_relative_ntoh (msm->duration); 682 bt = GNUNET_TIME_relative_ntoh (msm->duration);
683 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 683 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
684 _("Migration of content to peer `%s' blocked for %s\n"), 684 _("Migration of content to peer `%s' blocked for %s\n"),
685 GNUNET_i2s (other), 685 GNUNET_i2s (other),
686 GNUNET_STRINGS_relative_time_to_string (bt, GNUNET_YES)); 686 GNUNET_STRINGS_relative_time_to_string (bt, GNUNET_YES));
687 cp->ppd.migration_blocked_until = GNUNET_TIME_relative_to_absolute (bt); 687 cp->ppd.migration_blocked_until = GNUNET_TIME_relative_to_absolute (bt);
688 if (GNUNET_SCHEDULER_NO_TASK == cp->mig_revive_task) 688 if (GNUNET_SCHEDULER_NO_TASK == cp->mig_revive_task)
@@ -1254,7 +1254,7 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other,
1254 { 1254 {
1255 pr = peerreq->pr; 1255 pr = peerreq->pr;
1256 prd = GSF_pending_request_get_data_ (pr); 1256 prd = GSF_pending_request_get_data_ (pr);
1257 if (prd->type == type) 1257 if (prd->type == type)
1258 { 1258 {
1259 if (prd->ttl.abs_value_us >= GNUNET_TIME_absolute_get ().abs_value_us + ttl * 1000LL) 1259 if (prd->ttl.abs_value_us >= GNUNET_TIME_absolute_get ().abs_value_us + ttl * 1000LL)
1260 { 1260 {
@@ -1278,7 +1278,7 @@ GSF_handle_p2p_query_ (const struct GNUNET_PeerIdentity *other,
1278 1278
1279 peerreq = GNUNET_new (struct PeerRequest); 1279 peerreq = GNUNET_new (struct PeerRequest);
1280 peerreq->cp = cp; 1280 peerreq->cp = cp;
1281 pr = GSF_pending_request_create_ (options, type, &gm->query, 1281 pr = GSF_pending_request_create_ (options, type, &gm->query,
1282 target, 1282 target,
1283 (bfsize > 1283 (bfsize >
1284 0) ? (const char *) &opt[bits] : NULL, 1284 0) ? (const char *) &opt[bits] : NULL,
@@ -1813,8 +1813,8 @@ GSF_connected_peer_init_ ()
1813 * @return #GNUNET_YES (we should continue to iterate) 1813 * @return #GNUNET_YES (we should continue to iterate)
1814 */ 1814 */
1815static int 1815static int
1816clean_peer (void *cls, 1816clean_peer (void *cls,
1817 const struct GNUNET_PeerIdentity *key, 1817 const struct GNUNET_PeerIdentity *key,
1818 void *value) 1818 void *value)
1819{ 1819{
1820 GSF_peer_disconnect_handler_ (NULL, key); 1820 GSF_peer_disconnect_handler_ (NULL, key);
@@ -1846,8 +1846,8 @@ GSF_connected_peer_done_ ()
1846 * @return #GNUNET_YES (we should continue to iterate) 1846 * @return #GNUNET_YES (we should continue to iterate)
1847 */ 1847 */
1848static int 1848static int
1849clean_local_client (void *cls, 1849clean_local_client (void *cls,
1850 const struct GNUNET_PeerIdentity *key, 1850 const struct GNUNET_PeerIdentity *key,
1851 void *value) 1851 void *value)
1852{ 1852{
1853 const struct GSF_LocalClient *lc = cls; 1853 const struct GSF_LocalClient *lc = cls;