diff options
author | Eric Andersen | 2000-07-19 17:36:27 +0000 |
---|---|---|
committer | Eric Andersen | 2000-07-19 17:36:27 +0000 |
commit | a16c66335e24009c4cbcd57ce8205b4dfc7b099c (patch) | |
tree | 473d8971338e0fde2a9ba8bd627e79b476a85ccd | |
parent | ae6eae02dd85a196a4545376a50166aede8ce7c1 (diff) | |
download | busybox-a16c66335e24009c4cbcd57ce8205b4dfc7b099c.zip busybox-a16c66335e24009c4cbcd57ce8205b4dfc7b099c.tar.gz |
Use FatalError()
-Erik
-rw-r--r-- | coreutils/wc.c | 6 | ||||
-rw-r--r-- | wc.c | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c index 058444d..d1e05ae 100644 --- a/coreutils/wc.c +++ b/coreutils/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++; @@ -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++; |