Use FatalError()
authorEric Andersen <andersen@codepoet.org>
Wed, 19 Jul 2000 17:36:27 +0000 (17:36 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 19 Jul 2000 17:36:27 +0000 (17:36 -0000)
 -Erik

coreutils/wc.c
wc.c

index 058444d89634f2d2126caa9e2ca717eeb6ec6e63..d1e05ae37824d009c645a3d80910fe3678d62056 100644 (file)
@@ -136,16 +136,14 @@ int wc_main(int argc, char **argv)
        } else if (argc == 1) {
                file = fopen(*argv, "r");
                if (file == NULL) {
-                       perror(*argv);
-                       exit(FALSE);
+                       fatalError(*argv);
                }
                wc_file(file, *argv);
        } else {
                while (argc-- > 0) {
                        file = fopen(*argv, "r");
                        if (file == NULL) {
-                               perror(*argv);
-                               exit(FALSE);
+                               fatalError(*argv);
                        }
                        wc_file(file, *argv);
                        argv++;
diff --git a/wc.c b/wc.c
index 058444d89634f2d2126caa9e2ca717eeb6ec6e63..d1e05ae37824d009c645a3d80910fe3678d62056 100644 (file)
--- a/wc.c
+++ b/wc.c
@@ -136,16 +136,14 @@ int wc_main(int argc, char **argv)
        } else if (argc == 1) {
                file = fopen(*argv, "r");
                if (file == NULL) {
-                       perror(*argv);
-                       exit(FALSE);
+                       fatalError(*argv);
                }
                wc_file(file, *argv);
        } else {
                while (argc-- > 0) {
                        file = fopen(*argv, "r");
                        if (file == NULL) {
-                               perror(*argv);
-                               exit(FALSE);
+                               fatalError(*argv);
                        }
                        wc_file(file, *argv);
                        argv++;