X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_heap.h;h=d2d70cdc63f60181d149902b671899f1a7155f54;hp=6d71c43a13feb371af92033ee949a826e4cba67e;hb=1159cb5d383c55a80a0db100b8f7aadcf44740a5;hpb=ae5cca244ff291c17df1cc36e28f19376958a2eb diff --git a/src/daemon/utils_heap.h b/src/daemon/utils_heap.h index 6d71c43a..d2d70cdc 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,6 @@ 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 : */