#include <tools/tools.h>
#include <ccan/talloc/talloc.h>
#include <ccan/str/str.h>
+#include <ccan/cast/cast.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
!= strlen(example->lines[i])
|| write(fd, "\n", 1) != 1) {
close(fd);
- return "Failure writing to temporary file";
+ return cast_const(char *,
+ "Failure writing to temporary file");
}
}
close(fd);
return;
}
- score->error = "Expect examples in header and _info";
if (!have_info_example)
score_file_error(score, m->info_file, 0, "No Example: section");
if (!have_header_example)