diff options
author | Eric Andersen | 1999-10-05 22:58:32 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-05 22:58:32 +0000 |
commit | 2b69c40e8060934c115922c012737bd471956f09 (patch) | |
tree | c92657a42b94419ab9579e8c52639c301764ec40 /cat.c | |
parent | cc8ed39b240180b58810784f844e253263594ac3 (diff) | |
download | busybox-2b69c40e8060934c115922c012737bd471956f09.zip busybox-2b69c40e8060934c115922c012737bd471956f09.tar.gz |
More stuff works.
-Erik
Diffstat (limited to 'cat.c')
-rw-r--r-- | cat.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |