diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/util/container_heap.c | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index ef6bcc892..059a5b253 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c | |||
@@ -292,11 +292,8 @@ insert_node (struct GNUNET_CONTAINER_Heap *heap, | |||
292 | 292 | ||
293 | GNUNET_assert (node->parent == NULL); | 293 | GNUNET_assert (node->parent == NULL); |
294 | while ((heap->order == GNUNET_CONTAINER_HEAP_ORDER_MAX) ? (pos->cost >= | 294 | while ((heap->order == GNUNET_CONTAINER_HEAP_ORDER_MAX) ? (pos->cost >= |
295 | node-> | 295 | node->cost) |
296 | cost) : (pos-> | 296 | : (pos->cost <= node->cost)) |
297 | cost <= | ||
298 | node-> | ||
299 | cost)) | ||
300 | { | 297 | { |
301 | /* node is descendent of pos */ | 298 | /* node is descendent of pos */ |
302 | pos->tree_size += (1 + node->tree_size); | 299 | pos->tree_size += (1 + node->tree_size); |