]> git.ozlabs.org Git - ccan/commitdiff
tweaks from feedback - thanks
authorDan Good <dan@dancancode.com>
Thu, 10 Dec 2015 10:48:55 +0000 (10:48 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 10 Dec 2015 23:14:00 +0000 (09:44 +1030)
ccan/xstring/_info
ccan/xstring/test/run2.c

index 28928f16056d70ee935b8d20cd08cd05c75a11f7..2ea7577d9b62a1e4da6b79a229391f76074897e7 100644 (file)
@@ -93,7 +93,9 @@ int main(int argc, char *argv[])
        if (argc != 2)
                return 1;
 
-       if (strcmp(argv[1], "depends") == 0) {
+       if (strcmp(argv[1], "depends") == 0)
+               return 0;
+       if (strcmp(argv[1], "testdepends") == 0) {
                printf("ccan/failtest\n");
                return 0;
        }
index 6bd8f0fa5b45f3faf798f267ab815038d5e1b5f2..aa2453dec0867eb6257e283941e3ab77b8e3dc27 100644 (file)
@@ -7,7 +7,7 @@
 
 unsigned last_fail_line;
 
-enum failtest_result once_only(struct tlist_calls *history)
+static enum failtest_result once_only(struct tlist_calls *history)
 {
        const struct failtest_call *tail = tlist_tail(history, list);