X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcommon_test.c;h=68958f3f15271db5b66c64dd189e12e2f1c50073;hb=2ce1db8202b1eba6da45b347c0c81a508f8c088a;hp=23c6f2328c01383c6c235afd42a6272d4c4a480c;hpb=44dda7ba64dfdcab9d5fa8dbffc3bea980f13ab9;p=collectd.git diff --git a/src/daemon/common_test.c b/src/daemon/common_test.c index 23c6f232..68958f3f 100644 --- a/src/daemon/common_test.c +++ b/src/daemon/common_test.c @@ -24,8 +24,12 @@ * Florian octo Forster */ -#include "testing.h" #include "common.h" +#include "testing.h" + +#if HAVE_LIBKSTAT +kstat_ctl_t *kc; +#endif /* HAVE_LIBKSTAT */ DEF_TEST(sstrncpy) { @@ -86,7 +90,6 @@ DEF_TEST(sstrdup) EXPECT_EQ_STR ("collectd", ptr); sfree(ptr); - OK(ptr == NULL); ptr = sstrdup (NULL); OK(ptr == NULL);