Wrap a table (bg set to black, width=80%) around the screenshot
[oweals/busybox.git] / yes.c
diff --git a/yes.c b/yes.c
index f41bbb6ef4375a878afe463ce4cd31c0ac15f2d8..0ce49499f772a8b5bdf8327b69e9c99a0d514bea 100644 (file)
--- a/yes.c
+++ b/yes.c
@@ -20,8 +20,9 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
 
 extern int yes_main(int argc, char **argv)
 {
@@ -34,7 +35,7 @@ extern int yes_main(int argc, char **argv)
                while (1)
                        if (puts("y") == EOF) {
                                perror("yes");
-                               exit(FALSE);
+                               return EXIT_FAILURE;
                        }
        }
 
@@ -43,7 +44,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;
 }