From a55e821f4a497ca57161a023206cee5f21f3aed2 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 28 Jul 2009 22:23:26 +0200 Subject: [PATCH] utils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root(). ;-) --- src/plugin.c | 6 +++--- src/utils_heap.c | 4 ++-- src/utils_heap.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 24b26986..538ebe55 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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; diff --git a/src/utils_heap.c b/src/utils_heap.c index 1ecd07e8..086649a1 100644 --- a/src/utils_heap.c +++ b/src/utils_heap.c @@ -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 : */ diff --git a/src/utils_heap.h b/src/utils_heap.h index dd0f4866..64280064 100644 --- a/src/utils_heap.h +++ b/src/utils_heap.h @@ -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 : */ -- 2.30.2