X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fmain_header_compiles.c;fp=tools%2Fccanlint%2Ftests%2Fmain_header_compiles.c;h=c6c51837a8f5833f2b7ce735d5d10c147a92f67d;hb=10e5e329a1a8804ff6461e1724071364cf6be572;hp=b4a12e1349297a4330f2cae800c6d580e517232a;hpb=a64257be339a8485f66ca9bafd6be7077aa873cd;p=ccan diff --git a/tools/ccanlint/tests/main_header_compiles.c b/tools/ccanlint/tests/main_header_compiles.c index b4a12e13..c6c51837 100644 --- a/tools/ccanlint/tests/main_header_compiles.c +++ b/tools/ccanlint/tests/main_header_compiles.c @@ -51,7 +51,7 @@ static void check_includes_build(struct manifest *m, err(1, "Creating temporary file %s", tmpsrc); contents = talloc_asprintf(tmpsrc, "#include \n", - m->basename, m->basename); + m->modname, m->basename); if (write(fd, contents, strlen(contents)) != strlen(contents)) err(1, "writing to temporary file %s", tmpsrc); close(fd);