aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-07 18:19:32 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-07 18:19:32 +0000
commita60b958f984d08525b636a2c7eae564ebec54ae6 (patch)
tree6dcbbf91d734834f804b2fd9ab790244e2d60e6c /src/fs/fs_api.c
parentdecf459805cdb3f6811f979df4831bc2ce9a2858 (diff)
downloadgnunet-a60b958f984d08525b636a2c7eae564ebec54ae6.tar.gz
gnunet-a60b958f984d08525b636a2c7eae564ebec54ae6.zip
-chaning multihashmap API to allow option for avoiding key allocation
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index c99131d94..059c70ba6 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -2681,7 +2681,7 @@ deserialize_download (struct GNUNET_FS_Handle *h,
2681 } 2681 }
2682 dc->options = (enum GNUNET_FS_DownloadOptions) options; 2682 dc->options = (enum GNUNET_FS_DownloadOptions) options;
2683 dc->active = 2683 dc->active =
2684 GNUNET_CONTAINER_multihashmap_create (1 + 2 * (dc->length / DBLOCK_SIZE)); 2684 GNUNET_CONTAINER_multihashmap_create (1 + 2 * (dc->length / DBLOCK_SIZE), GNUNET_NO);
2685 dc->has_finished = (int) status; 2685 dc->has_finished = (int) status;
2686 dc->treedepth = 2686 dc->treedepth =
2687 GNUNET_FS_compute_depth (GNUNET_FS_uri_chk_get_file_size (dc->uri)); 2687 GNUNET_FS_compute_depth (GNUNET_FS_uri_chk_get_file_size (dc->uri));
@@ -2804,7 +2804,7 @@ deserialize_search (struct GNUNET_FS_Handle *h,
2804 goto cleanup; 2804 goto cleanup;
2805 } 2805 }
2806 sc->options = (enum GNUNET_FS_SearchOptions) options; 2806 sc->options = (enum GNUNET_FS_SearchOptions) options;
2807 sc->master_result_map = GNUNET_CONTAINER_multihashmap_create (16); 2807 sc->master_result_map = GNUNET_CONTAINER_multihashmap_create (16, GNUNET_NO);
2808 dn = get_serialization_file_name_in_dir (h, 2808 dn = get_serialization_file_name_in_dir (h,
2809 (sc->psearch_result == 2809 (sc->psearch_result ==
2810 NULL) ? 2810 NULL) ?