X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_avltree_test.c;h=3171246a15c71a5edf3039da142ec557e938a2da;hp=345f97bf4c3cb8efd51fd9be91d287996344455c;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=2b4445ea9b4b978468d75864f98e8137ba628dec diff --git a/src/daemon/utils_avltree_test.c b/src/daemon/utils_avltree_test.c index 345f97bf..3171246a 100644 --- a/src/daemon/utils_avltree_test.c +++ b/src/daemon/utils_avltree_test.c @@ -24,13 +24,14 @@ * Florian octo Forster */ -#include "common.h" /* STATIC_ARRAY_SIZE */ #include "collectd.h" +#include "common.h" /* STATIC_ARRAY_SIZE */ #include "testing.h" #include "utils_avltree.h" -static int compare_total_count = 0; +static int compare_total_count; + #define RESET_COUNTS() \ do { \ compare_total_count = 0; \ @@ -41,7 +42,7 @@ static int compare_callback(void const *v0, void const *v1) { assert(v1 != NULL); compare_total_count++; - return (strcmp(v0, v1)); + return strcmp(v0, v1); } DEF_TEST(success) { @@ -127,7 +128,7 @@ DEF_TEST(success) { c_avl_destroy(t); - return (0); + return 0; } int main(void) {