diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-07-20 17:13:26 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-07-20 17:13:26 +0000 |
commit | 90c70e8315c4a366996da379f839dc84d21d5f38 (patch) | |
tree | 0bfd73d2da8b8efb8de888c09ea4dd5bfc4cdb0f /src/fs/gnunet-service-fs_cadet_client.c | |
parent | 3aab63d5c50db0eb784d3b65b2bd989d3458c960 (diff) | |
download | gnunet-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.c | 8 |
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 | ||