aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-30 18:58:25 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-30 18:58:25 +0000
commit221afde829c4bf9d20da68d42352697a6abf7f51 (patch)
tree56bb80350b8f56a2f2792b215fd9050c2c69efc2 /src/util/container_heap.c
parentdb6f2016ec9456dc08debcc00af16f5bb7c32a72 (diff)
downloadgnunet-221afde829c4bf9d20da68d42352697a6abf7f51.tar.gz
gnunet-221afde829c4bf9d20da68d42352697a6abf7f51.zip
bugfixes
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r--src/util/container_heap.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index efe968e82..4709d97a6 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -28,19 +28,7 @@
28#include "gnunet_protocols.h" 28#include "gnunet_protocols.h"
29#include "gnunet_util_lib.h" 29#include "gnunet_util_lib.h"
30 30
31/* 31/**
32 * Struct that is stored in hashmap, pointers to
33 * locations in min_heap and max_heap.
34 */
35struct GNUNET_CONTAINER_heap_info
36{
37 struct GNUNET_CONTAINER_heap_node *min_loc;
38
39 struct GNUNET_CONTAINER_heap_node *max_loc;
40
41};
42
43/*
44 * Generic heap node structure, contains pointer to parent 32 * Generic heap node structure, contains pointer to parent
45 * left child, right child, and actual neighbor. 33 * left child, right child, and actual neighbor.
46 */ 34 */
@@ -211,7 +199,7 @@ static struct GNUNET_CONTAINER_heap_node *
211getPos (struct GNUNET_CONTAINER_Heap *root, unsigned int pos) 199getPos (struct GNUNET_CONTAINER_Heap *root, unsigned int pos)
212{ 200{
213 struct GNUNET_CONTAINER_heap_node *ret; 201 struct GNUNET_CONTAINER_heap_node *ret;
214 int i; 202 unsigned int i;
215 203
216 ret = NULL; 204 ret = NULL;
217 if (pos > root->size) 205 if (pos > root->size)