diff options
author | Matt Kraai | 2000-09-22 03:45:34 +0000 |
---|---|---|
committer | Matt Kraai | 2000-09-22 03:45:34 +0000 |
commit | 90f580ad5bde613e01a5ddf2efb5eb2d3a5f6a72 (patch) | |
tree | d77e731856f4a6224cc15cdd12faa62ecba27a24 | |
parent | d995493987065846ab8cc7360879e0841826b068 (diff) | |
download | busybox-90f580ad5bde613e01a5ddf2efb5eb2d3a5f6a72.zip busybox-90f580ad5bde613e01a5ddf2efb5eb2d3a5f6a72.tar.gz |
Start the great EXIT_{SUCCESS,FAILURE} migration.
-rw-r--r-- | coreutils/yes.c | 7 | ||||
-rw-r--r-- | yes.c | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c index f41bbb6..11fa537 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c @@ -34,7 +34,7 @@ extern int yes_main(int argc, char **argv) while (1) if (puts("y") == EOF) { perror("yes"); - exit(FALSE); + return EXIT_FAILURE; } } @@ -43,7 +43,8 @@ extern int yes_main(int argc, char **argv) if (fputs(argv[i], stdout) == EOF || putchar(i == argc - 1 ? '\n' : ' ') == EOF) { perror("yes"); - exit(FALSE); + return EXIT_FAILURE; } - exit(TRUE); + + return EXIT_SUCCESS; } @@ -34,7 +34,7 @@ extern int yes_main(int argc, char **argv) while (1) if (puts("y") == EOF) { perror("yes"); - exit(FALSE); + return EXIT_FAILURE; } } @@ -43,7 +43,8 @@ extern int yes_main(int argc, char **argv) if (fputs(argv[i], stdout) == EOF || putchar(i == argc - 1 ? '\n' : ' ') == EOF) { perror("yes"); - exit(FALSE); + return EXIT_FAILURE; } - exit(TRUE); + + return EXIT_SUCCESS; } |