X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_heap.h;h=2f77cc450720be2a52738583cddaf1e4eaadcf8e;hb=79963d13c1884d1d92667cc502ad20758b084a12;hp=6d71c43a13feb371af92033ee949a826e4cba67e;hpb=21a4ddcc2d66eea59224fd95746c7533b1b1a46d;p=collectd.git diff --git a/src/daemon/utils_heap.h b/src/daemon/utils_heap.h index 6d71c43a..2f77cc45 100644 --- a/src/daemon/utils_heap.h +++ b/src/daemon/utils_heap.h @@ -39,7 +39,7 @@ typedef struct c_heap_s c_heap_t; * * PARAMETERS * `compare' The function-pointer `compare' is used to compare two keys. It - * has to return less than zero if it's first argument is smaller + * has to return less than zero if its first argument is smaller * then the second argument, more than zero if the first argument * is bigger than the second argument and zero if they are equal. * If your keys are char-pointers, you can use the `strcmp' @@ -48,7 +48,7 @@ typedef struct c_heap_s c_heap_t; * RETURN VALUE * A c_heap_t-pointer upon success or NULL upon failure. */ -c_heap_t *c_heap_create (int (*compare) (const void *, const void *)); +c_heap_t *c_heap_create(int (*compare)(const void *, const void *)); /* * NAME @@ -58,7 +58,7 @@ c_heap_t *c_heap_create (int (*compare) (const void *, const void *)); * Deallocates a heap. Stored value- and key-pointer are lost, but of course * not freed. */ -void c_heap_destroy (c_heap_t *h); +void c_heap_destroy(c_heap_t *h); /* * NAME @@ -78,7 +78,7 @@ void c_heap_destroy (c_heap_t *h); * Zero upon success, non-zero otherwise. It's less than zero if an error * occurred or greater than zero if the key is already stored in the tree. */ -int c_heap_insert (c_heap_t *h, void *ptr); +int c_heap_insert(c_heap_t *h, void *ptr); /* * NAME @@ -94,7 +94,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_heap_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 : */