diff options
Diffstat (limited to 'coreutils/cat.c')
-rw-r--r-- | coreutils/cat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c index 12faf55..0f2460e 100644 --- a/coreutils/cat.c +++ b/coreutils/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); } |