antithread: fix -Wwrite-strings warning in test, and trailing whitespace.
[ccan] / ccan / antithread / test / run-spawn.c
index b8aa81e5d707aafa421c3934a447e3d3b506270c..f1dcd2f82c1cc2322028ac7569d57d42a916f057 100644 (file)
@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
        struct athread *at;
        int err, *pid;
        void *arg;
-       char *bad_args[] = { "/", NULL };
+       char *bad_args[] = { (char *)"/", NULL };
 
        atp = at_get_pool(&argc, argv, &arg);
        if (atp) {