X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Favoids_cpp_reserved.c;h=e094f270b1461bdfa80512e38b62fb9295719117;hb=932d65dd6537250e617516749f03a00fea3b34f6;hp=72b3604efa45478c4f8d59110d92bc37bca9880a;hpb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;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);