aboutsummaryrefslogtreecommitdiff
path: root/yes.c
diff options
context:
space:
mode:
Diffstat (limited to 'yes.c')
-rw-r--r--yes.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/yes.c b/yes.c
index f41bbb6ef..11fa537a0 100644
--- a/yes.c
+++ b/yes.c
@@ -34,7 +34,7 @@ extern int yes_main(int argc, char **argv)
34 while (1) 34 while (1)
35 if (puts("y") == EOF) { 35 if (puts("y") == EOF) {
36 perror("yes"); 36 perror("yes");
37 exit(FALSE); 37 return EXIT_FAILURE;
38 } 38 }
39 } 39 }
40 40
@@ -43,7 +43,8 @@ extern int yes_main(int argc, char **argv)
43 if (fputs(argv[i], stdout) == EOF 43 if (fputs(argv[i], stdout) == EOF
44 || putchar(i == argc - 1 ? '\n' : ' ') == EOF) { 44 || putchar(i == argc - 1 ? '\n' : ' ') == EOF) {
45 perror("yes"); 45 perror("yes");
46 exit(FALSE); 46 return EXIT_FAILURE;
47 } 47 }
48 exit(TRUE); 48
49 return EXIT_SUCCESS;
49} 50}