X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Favoids_cpp_reserved.c;h=e094f270b1461bdfa80512e38b62fb9295719117;hb=10e5e329a1a8804ff6461e1724071364cf6be572;hp=72b3604efa45478c4f8d59110d92bc37bca9880a;hpb=a64257be339a8485f66ca9bafd6be7077aa873cd;p=ccan diff --git a/tools/ccanlint/tests/avoids_cpp_reserved.c b/tools/ccanlint/tests/avoids_cpp_reserved.c index 72b3604e..e094f270 100644 --- a/tools/ccanlint/tests/avoids_cpp_reserved.c +++ b/tools/ccanlint/tests/avoids_cpp_reserved.c @@ -85,7 +85,7 @@ static void check_headers_no_cpp(struct manifest *m, "#define using #DONT_USE_CPLUSPLUS_RESERVED_NAMES\n" "#define virtual #DONT_USE_CPLUSPLUS_RESERVED_NAMES\n" "#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);