summaryrefslogtreecommitdiff
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 f41bbb6..11fa537 100644
--- a/yes.c
+++ b/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;
}