Browse Source

tweaks from feedback - thanks

Dan Good 10 years ago
parent
commit
6c31b5c92d
2 changed files with 4 additions and 2 deletions
  1. 3 1
      ccan/xstring/_info
  2. 1 1
      ccan/xstring/test/run2.c

+ 3 - 1
ccan/xstring/_info

@@ -93,7 +93,9 @@ int main(int argc, char *argv[])
 	if (argc != 2)
 	if (argc != 2)
 		return 1;
 		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");
 		printf("ccan/failtest\n");
 		return 0;
 		return 0;
 	}
 	}

+ 1 - 1
ccan/xstring/test/run2.c

@@ -7,7 +7,7 @@
 
 
 unsigned last_fail_line;
 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);
 	const struct failtest_call *tail = tlist_tail(history, list);