X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fhas_examples.c;h=d5f32795af44ef20da241b5f4b8453e52be0b35b;hp=22d18e9d5a1440004c341d2bde93f3b735707a7b;hb=aba65f26a9cbc9b9cb3eb493731f83bca487d67f;hpb=15a9d29cedeb5a9b838162b40ad18fecca681dca diff --git a/tools/ccanlint/tests/has_examples.c b/tools/ccanlint/tests/has_examples.c index 22d18e9d..d5f32795 100644 --- a/tools/ccanlint/tests/has_examples.c +++ b/tools/ccanlint/tests/has_examples.c @@ -32,7 +32,7 @@ static char *add_example(struct manifest *m, struct ccan_file *source, example->function)); f = new_ccan_file(m, talloc_dirname(m, name), talloc_basename(m, name)); talloc_steal(f, name); - list_add(&m->examples, &f->list); + list_add_tail(&m->examples, &f->list); fd = open(f->fullname, O_WRONLY | O_CREAT | O_EXCL, 0600); if (fd < 0)