]> git.ozlabs.org Git - ccan/blobdiff - ccan/asearch/test/compile_fail-return-value.c
Makefile: Remove testdepends from make check dependencies
[ccan] / ccan / asearch / test / compile_fail-return-value.c
index 4aef5327a8347970b19e5470cfdcde5cf50e45c7..226f279bd9e5cbae490f8e3eedbca6234b292191 100644 (file)
@@ -1,6 +1,8 @@
 #include <ccan/asearch/asearch.h>
 
-static int cmp(const char *key, char *const *elem)
+#include <ccan/asearch/asearch.c>
+
+static int cmp(const char *key, char *const *elem, void *ctx)
 {
        return 0;
 }
@@ -17,6 +19,6 @@ int main(int argc, char **argv)
 #else
        char **p;
 #endif
-       p = asearch(key, argv+1, argc-1, cmp);
+       p = asearch(key, argv+1, argc-1, cmp, NULL);
        return p ? 0 : 1;
 }