]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: rename obj_list in examples_compile.c to example_obj_list.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Aug 2011 23:53:39 +0000 (09:23 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Aug 2011 23:53:39 +0000 (09:23 +0930)
Trivial cleanup, but differentiates from the general obj_list used
elsewhere.

tools/ccanlint/tests/examples_compile.c

index 4b6f4d624be2ead86e1a66a09d8f678bad8cb627..646e5ae3325a575f94e83ab496fcef66792016a6 100644 (file)
@@ -71,7 +71,7 @@ static void add_dep(struct manifest ***deps, const char *basename)
        }
 }
 
        }
 }
 
-static char *obj_list(struct manifest *m, struct ccan_file *f)
+static char *example_obj_list(struct manifest *m, struct ccan_file *f)
 {
        struct manifest **deps = talloc_array(f, struct manifest *, 0);
        char **lines, *list;
 {
        struct manifest **deps = talloc_array(f, struct manifest *, 0);
        char **lines, *list;
@@ -121,7 +121,7 @@ static bool compile(const void *ctx,
 {
        file->compiled = maybe_temp_file(ctx, "", keep, file->fullname);
        if (!compile_and_link(ctx, file->fullname, ccan_dir,
 {
        file->compiled = maybe_temp_file(ctx, "", keep, file->fullname);
        if (!compile_and_link(ctx, file->fullname, ccan_dir,
-                             obj_list(m, file),
+                             example_obj_list(m, file),
                              compiler, cflags,
                              lib_list(m), file->compiled, output)) {
                /* Don't keep failures. */
                              compiler, cflags,
                              lib_list(m), file->compiled, output)) {
                /* Don't keep failures. */