aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cadet_client.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
committerBart Polot <bart@net.in.tum.de>2016-07-20 17:13:26 +0000
commit90c70e8315c4a366996da379f839dc84d21d5f38 (patch)
tree0bfd73d2da8b8efb8de888c09ea4dd5bfc4cdb0f /src/fs/gnunet-service-fs_cadet_client.c
parent3aab63d5c50db0eb784d3b65b2bd989d3458c960 (diff)
downloadgnunet-90c70e8315c4a366996da379f839dc84d21d5f38.tar.gz
gnunet-90c70e8315c4a366996da379f839dc84d21d5f38.zip
- fix CADET-using services
Diffstat (limited to 'src/fs/gnunet-service-fs_cadet_client.c')
-rw-r--r--src/fs/gnunet-service-fs_cadet_client.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs_cadet_client.c b/src/fs/gnunet-service-fs_cadet_client.c
index 90a0c3b7f..5b24b3116 100644
--- a/src/fs/gnunet-service-fs_cadet_client.c
+++ b/src/fs/gnunet-service-fs_cadet_client.c
@@ -236,7 +236,7 @@ reset_cadet (struct CadetHandle *mh)
236 mh->channel = GNUNET_CADET_channel_create (cadet_handle, 236 mh->channel = GNUNET_CADET_channel_create (cadet_handle,
237 mh, 237 mh,
238 &mh->target, 238 &mh->target,
239 GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER, 239 GC_u2h (GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER),
240 GNUNET_CADET_OPTION_RELIABLE); 240 GNUNET_CADET_OPTION_RELIABLE);
241 transmit_pending (mh); 241 transmit_pending (mh);
242} 242}
@@ -547,7 +547,7 @@ get_cadet (const struct GNUNET_PeerIdentity *target)
547 mh->channel = GNUNET_CADET_channel_create (cadet_handle, 547 mh->channel = GNUNET_CADET_channel_create (cadet_handle,
548 mh, 548 mh,
549 &mh->target, 549 &mh->target,
550 GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER, 550 GC_u2h (GNUNET_APPLICATION_TYPE_FS_BLOCK_TRANSFER),
551 GNUNET_CADET_OPTION_RELIABLE); 551 GNUNET_CADET_OPTION_RELIABLE);
552 GNUNET_assert (mh == 552 GNUNET_assert (mh ==
553 GNUNET_CONTAINER_multipeermap_get (cadet_map, 553 GNUNET_CONTAINER_multipeermap_get (cadet_map,
@@ -719,10 +719,8 @@ GSF_cadet_start_client ()
719 cadet_map = GNUNET_CONTAINER_multipeermap_create (16, GNUNET_YES); 719 cadet_map = GNUNET_CONTAINER_multipeermap_create (16, GNUNET_YES);
720 cadet_handle = GNUNET_CADET_connect (GSF_cfg, 720 cadet_handle = GNUNET_CADET_connect (GSF_cfg,
721 NULL, 721 NULL,
722 NULL,
723 &cleaner_cb, 722 &cleaner_cb,
724 handlers, 723 handlers);
725 NULL);
726} 724}
727 725
728 726