X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fheaders_idempotent.c;fp=tools%2Fccanlint%2Ftests%2Fheaders_idempotent.c;h=4e41d058d22a60fcf4edf8550aba0586c0d7bd33;hb=10e5e329a1a8804ff6461e1724071364cf6be572;hp=bf8c9f2dad8e61e406c40b6399aeae98fa12129b;hpb=a64257be339a8485f66ca9bafd6be7077aa873cd;p=ccan diff --git a/tools/ccanlint/tests/headers_idempotent.c b/tools/ccanlint/tests/headers_idempotent.c index bf8c9f2d..4e41d058 100644 --- a/tools/ccanlint/tests/headers_idempotent.c +++ b/tools/ccanlint/tests/headers_idempotent.c @@ -46,10 +46,10 @@ static void handle_idem(struct manifest *m, struct score *score) /* Main header gets CCAN_FOO_H, others CCAN_FOO_XXX_H */ if (strstarts(e->file->name, m->basename) || strlen(e->file->name) == strlen(m->basename) + 2) - name = talloc_asprintf(score, "CCAN_%s_H", m->basename); + name = talloc_asprintf(score, "CCAN_%s_H", m->modname); else name = talloc_asprintf(score, "CCAN_%s_%s", - m->basename, e->file->name); + m->modname, e->file->name); fix_name(name); q = talloc_asprintf(score,