diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-07 18:19:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-07 18:19:32 +0000 |
commit | a60b958f984d08525b636a2c7eae564ebec54ae6 (patch) | |
tree | 6dcbbf91d734834f804b2fd9ab790244e2d60e6c /src/fs/gnunet-service-fs_pe.c | |
parent | decf459805cdb3f6811f979df4831bc2ce9a2858 (diff) | |
download | gnunet-a60b958f984d08525b636a2c7eae564ebec54ae6.tar.gz gnunet-a60b958f984d08525b636a2c7eae564ebec54ae6.zip |
-chaning multihashmap API to allow option for avoiding key allocation
Diffstat (limited to 'src/fs/gnunet-service-fs_pe.c')
-rw-r--r-- | src/fs/gnunet-service-fs_pe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index dbaab7d48..bc08eebe7 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c | |||
@@ -572,7 +572,7 @@ GSF_plan_add_ (struct GSF_ConnectedPeer *cp, struct GSF_PendingRequest *pr) | |||
572 | if (NULL == pp) | 572 | if (NULL == pp) |
573 | { | 573 | { |
574 | pp = GNUNET_malloc (sizeof (struct PeerPlan)); | 574 | pp = GNUNET_malloc (sizeof (struct PeerPlan)); |
575 | pp->plan_map = GNUNET_CONTAINER_multihashmap_create (128); | 575 | pp->plan_map = GNUNET_CONTAINER_multihashmap_create (128, GNUNET_NO); |
576 | pp->priority_heap = | 576 | pp->priority_heap = |
577 | GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MAX); | 577 | GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MAX); |
578 | pp->delay_heap = | 578 | pp->delay_heap = |
@@ -760,7 +760,7 @@ GSF_plan_notify_request_done_ (struct GSF_PendingRequest *pr) | |||
760 | void | 760 | void |
761 | GSF_plan_init () | 761 | GSF_plan_init () |
762 | { | 762 | { |
763 | plans = GNUNET_CONTAINER_multihashmap_create (256); | 763 | plans = GNUNET_CONTAINER_multihashmap_create (256, GNUNET_NO); |
764 | } | 764 | } |
765 | 765 | ||
766 | 766 | ||