[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9025 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9025 - gnunet/src/util |
Date: |
Thu, 24 Sep 2009 07:21:58 -0600 |
Author: grothoff
Date: 2009-09-24 07:21:58 -0600 (Thu, 24 Sep 2009)
New Revision: 9025
Modified:
gnunet/src/util/container_heap.c
Log:
use static'
'
Modified: gnunet/src/util/container_heap.c
===================================================================
--- gnunet/src/util/container_heap.c 2009-09-24 12:12:07 UTC (rev 9024)
+++ gnunet/src/util/container_heap.c 2009-09-24 13:21:58 UTC (rev 9025)
@@ -87,7 +87,7 @@
return heap->root->element;
}
-int
+static int
next_power_of_2(int v)
{
v |= v >> 1;
@@ -99,7 +99,8 @@
return v;
}
-void
+#if 0
+static void
internal_print (struct GNUNET_CONTAINER_heap_node *root)
{
fprintf (stdout, "%llu\n", (unsigned long long) root->cost);
@@ -115,11 +116,12 @@
}
}
-void
+static void
printTree (struct GNUNET_CONTAINER_Heap *root)
{
internal_print (root->root);
}
+#endif
struct GNUNET_CONTAINER_Heap *
GNUNET_CONTAINER_heap_create (enum GNUNET_CONTAINER_HeapOrder type)
@@ -414,7 +416,7 @@
/* We are removing the last node in the heap! */
root->root = NULL;
root->traversal_pos = NULL;
- root->size = 0;
+ GNUNET_assert (0 == --root->size);
return ret;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9025 - gnunet/src/util,
gnunet <=