author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 16:43:38 +0000 (18:43 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 24 Jul 2016 16:46:04 +0000 (18:46 +0200) | ||
commit | 1a0d2707d5fb73cd778831acf8af4980225b0bbc | |
tree | c51025c572c0064c6ad89576da629d3d1df985ce | tree | snapshot |
parent | a08316a28cc9bad5c03959009b7e24683e6e43cb | commit | diff |
treewide: fix invocation of c_avl_create
Fixes the following warning on Solaris:
|c_avl_tree_t *c_avl_create (int (*compare) (const void *, const
void *));
| ^ line 54, utils_avltree.h
| included in line 34, utils_vl_lookup.c
|
| obj->by_type_tree = c_avl_create ((void *) strcmp);
| ^ line 567,
utils_vl_lookup.c
E_ARG_INCOMPATIBLE_WITH_ARG_L, argument #1 is incompatible with
prototype:
prototype: pointer to function(pointer to const void, pointer to
const void) returning int : "src/daemon/utils_avltree.h", line 54
argument : pointer to void
I'll look into writing a generic function to compare avl keys so
we don't need to do all the casting.
Fixes the following warning on Solaris:
|c_avl_tree_t *c_avl_create (int (*compare) (const void *, const
void *));
| ^ line 54, utils_avltree.h
| included in line 34, utils_vl_lookup.c
|
| obj->by_type_tree = c_avl_create ((void *) strcmp);
| ^ line 567,
utils_vl_lookup.c
E_ARG_INCOMPATIBLE_WITH_ARG_L, argument #1 is incompatible with
prototype:
prototype: pointer to function(pointer to const void, pointer to
const void) returning int : "src/daemon/utils_avltree.h", line 54
argument : pointer to void
I'll look into writing a generic function to compare avl keys so
we don't need to do all the casting.
src/daemon/plugin.c | diff | blob | history | |
src/ethstat.c | diff | blob | history | |
src/gmond.c | diff | blob | history | |
src/statsd.c | diff | blob | history | |
src/threshold.c | diff | blob | history | |
src/utils_fbhash.c | diff | blob | history | |
src/utils_vl_lookup.c | diff | blob | history | |
src/zone.c | diff | blob | history |