X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_exist.c;h=085f673a7e5ed506a6abe819911ef8e21af5a444;hp=947d76a4a768751053e6830b4bb788cb2c56df77;hb=caf366998b97b7cc29bc1f33c285feb2f5d33bff;hpb=051db34fb275491d4d5dfa5bf7970e8e525766d8 diff --git a/tools/ccanlint/tests/examples_exist.c b/tools/ccanlint/tests/examples_exist.c index 947d76a4..085f673a 100644 --- a/tools/ccanlint/tests/examples_exist.c +++ b/tools/ccanlint/tests/examples_exist.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include @@ -48,7 +49,8 @@ static char *add_example(struct manifest *m, struct ccan_file *source, != 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); @@ -98,7 +100,6 @@ static void extract_examples(struct manifest *m, 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)