]> git.ozlabs.org Git - ccan/blobdiff - ccan/str_talloc/test/run.c
Simple compile fixes for tests.
[ccan] / ccan / str_talloc / test / run.c
index 6da48bd0bc98f2c5fceb776012e08c5c1372b8b1..2e45aafe2c2a51e30f115af39a0610f865417249 100644 (file)
@@ -3,13 +3,18 @@
 #include <stdio.h>
 #include "str_talloc/str_talloc.c"
 #include "tap/tap.h"
+#include "str/str.h"
 
 /* FIXME: ccanize */
 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))
 
+static char *substrings[] = { "far", "bar", "baz", "b", "ba", "z", "ar", NULL };
+
 int main(int argc, char *argv[])
 {
-       unsigned int i, j, n;
+       unsigned int n;
+       char **split, *str;
+       void *ctx;
 
        plan_tests(19);
        split = strsplit(NULL, "hello  world", " ", &n);