From: Sebastian Harl Date: Tue, 28 Jul 2009 20:23:26 +0000 (+0200) Subject: utils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root(). X-Git-Tag: collectd-4.9.0~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a55e821f4a497ca57161a023206cee5f21f3aed2;p=collectd.git utils_heap: Fixed a typo: c_head_get_root() -> c_heap_get_root(). ;-) --- 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 : */