#include <ccan/talloc/talloc.h>
#include <ccan/foreach/foreach.h>
#include <ccan/str/str.h>
+#include <ccan/cast/cast.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
foreach_ptr(fmt, "outputs '%s'", "outputs \"%s\"") {
if (scan_for(file, p, fmt, &expect)) {
- *input = "";
+ *input = cast_const(char *, "");
*exact = true;
return expect;
}
"outputs \"%s\"",
"outputs %s") {
if (scan_for(file, p, fmt, &expect)) {
- *input = "";
+ *input = cast_const(char *, "");
*exact = true;
return expect;
}
"output contains \"%s\"",
"output contains %s") {
if (scan_for(file, p, fmt, &expect)) {
- *input = "";
+ *input = cast_const(char *, "");
*exact = false;
return expect;
}