aboutsummaryrefslogtreecommitdiff
path: root/cat.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-10-05 22:58:32 +0000
committerEric Andersen <andersen@codepoet.org>1999-10-05 22:58:32 +0000
commit2b69c40e8060934c115922c012737bd471956f09 (patch)
treec92657a42b94419ab9579e8c52639c301764ec40 /cat.c
parentcc8ed39b240180b58810784f844e253263594ac3 (diff)
downloadbusybox-2b69c40e8060934c115922c012737bd471956f09.tar.gz
More stuff works.
-Erik
Diffstat (limited to 'cat.c')
-rw-r--r--cat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cat.c b/cat.c
index 12faf55ab..0f2460eb7 100644
--- a/cat.c
+++ b/cat.c
@@ -31,7 +31,7 @@ extern int cat_more_main(int argc, char **argv)
if (argc < 2) {
fprintf(stderr, "Usage: %s %s", *argv, cat_usage);
- return 1;
+ return(FALSE);
}
argc--;
argv++;
@@ -39,8 +39,8 @@ extern int cat_more_main(int argc, char **argv)
while (argc-- > 0) {
file = fopen(*argv, "r");
if (file == NULL) {
- name_and_error(*argv);
- return 1;
+ perror(*argv);
+ return(FALSE);
}
while ((c = getc(file)) != EOF)
putc(c, stdout);
@@ -50,5 +50,5 @@ extern int cat_more_main(int argc, char **argv)
argc--;
argv++;
}
- return 0;
+ return(TRUE);
}