aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
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)