Code

treewide: fix invocation of c_avl_create
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 16:43:38 +0000 (18:43 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 24 Jul 2016 16:46:04 +0000 (18:46 +0200)
commit1a0d2707d5fb73cd778831acf8af4980225b0bbc
treec51025c572c0064c6ad89576da629d3d1df985ce
parenta08316a28cc9bad5c03959009b7e24683e6e43cb
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.
src/daemon/plugin.c
src/ethstat.c
src/gmond.c
src/statsd.c
src/threshold.c
src/utils_fbhash.c
src/utils_vl_lookup.c
src/zone.c