X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fhas_examples.c;h=d5f32795af44ef20da241b5f4b8453e52be0b35b;hb=0f66da713a750c995bb59452a95f4a71fdd8a58c;hp=22d18e9d5a1440004c341d2bde93f3b735707a7b;hpb=f3305bc06847d022831f8ffd7beaccab316d8143;p=ccan 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)