ccanlint: fix bogus strerror printing when unknown test handed to --target
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Dec 2010 08:15:25 +0000 (18:45 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Dec 2010 08:15:25 +0000 (18:45 +1030)
tools/ccanlint/ccanlint.c

index 58ca1f537d7d0d3f5d75058b534edac722016d3c..ee34dd71438d179fe72999bca15c1967c8e039a8 100644 (file)
@@ -497,7 +497,7 @@ int main(int argc, char *argv[])
 
                test = find_test(target);
                if (!test)
-                       err(1, "Unknown test to run '%s'", target);
+                       errx(1, "Unknown test to run '%s'", target);
                skip_unrelated_tests(test);
        }