utils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root().
authorSebastian Harl <sh@tokkee.org>
Tue, 28 Jul 2009 20:23:26 +0000 (22:23 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 8 Dec 2009 20:13:30 +0000 (21:13 +0100)
;-)

src/plugin.c
src/utils_heap.c
src/utils_heap.h

index 24b2698..538ebe5 100644 (file)
@@ -151,7 +151,7 @@ static void destroy_read_heap (void) /* {{{ */
        {
                callback_func_t *cf;
 
-               cf = c_head_get_root (read_heap);
+               cf = c_heap_get_root (read_heap);
                if (cf == NULL)
                        break;
 
@@ -329,7 +329,7 @@ static void *plugin_read_thread (void __attribute__((unused)) *args)
                int rf_type;
 
                /* Get the read function that needs to be read next. */
-               rf = c_head_get_root (read_heap);
+               rf = c_heap_get_root (read_heap);
                if (rf == NULL)
                {
                        struct timespec abstime;
@@ -1053,7 +1053,7 @@ int plugin_read_all_once (void)
        {
                read_func_t *rf;
 
-               rf = c_head_get_root (read_heap);
+               rf = c_heap_get_root (read_heap);
                if (rf == NULL)
                        break;
 
index 1ecd07e..086649a 100644 (file)
@@ -172,7 +172,7 @@ int c_heap_insert (c_heap_t *h, void *ptr)
   return (0);
 } /* int c_heap_insert */
 
-void *c_head_get_root (c_heap_t *h)
+void *c_heap_get_root (c_heap_t *h)
 {
   void *ret = NULL;
 
@@ -218,6 +218,6 @@ void *c_head_get_root (c_heap_t *h)
   pthread_mutex_unlock (&h->lock);
 
   return (ret);
-} /* void *c_head_get_root */
+} /* void *c_heap_get_root */
 
 /* vim: set sw=2 sts=2 et fdm=marker : */
index dd0f486..6428006 100644 (file)
@@ -78,7 +78,7 @@ int c_heap_insert (c_heap_t *h, void *ptr);
 
 /*
  * NAME
- *   c_head_get_root
+ *   c_heap_get_root
  *
  * DESCRIPTION
  *   Removes the value at the root of the heap and returns both, key and value.
@@ -90,7 +90,7 @@ int c_heap_insert (c_heap_t *h, void *ptr);
  *   The pointer passed to `c_heap_insert' or NULL if there are no more
  *   elements in the heap (or an error occurred).
  */
-void *c_head_get_root (c_heap_t *h);
+void *c_heap_get_root (c_heap_t *h);
 
 #endif /* UTILS_HEAP_H */
 /* vim: set sw=2 sts=2 et : */