summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: edb6c35)
raw | patch | inline | side by side (parent: edb6c35)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 28 Jul 2009 20:23:26 +0000 (22:23 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 8 Dec 2009 20:13:30 +0000 (21:13 +0100) |
;-)
src/plugin.c | patch | blob | history | |
src/utils_heap.c | patch | blob | history | |
src/utils_heap.h | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 24b269865da47cd74a1ea631b3ecd1c8c5eabb5f..538ebe55d9bb64d42529d2206b73a7a07010d2bd 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
{
callback_func_t *cf;
- cf = c_head_get_root (read_heap);
+ cf = c_heap_get_root (read_heap);
if (cf == NULL)
break;
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;
{
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 1ecd07e82abb8dd66ed787413c0b2d572192eb75..086649a1f48582d58cbe995fbce2a5aa3709f5ec 100644 (file)
--- a/src/utils_heap.c
+++ b/src/utils_heap.c
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;
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 dd0f4866ad44984ce38bff275c8c9718346d5888..64280064f4757ababad457c7f3337430e3ca6a7b 100644 (file)
--- a/src/utils_heap.h
+++ b/src/utils_heap.h
/*
* 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.
* 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 : */