Applied patch from Gennady Feldman to use single-thread instead of forking.
[oweals/busybox.git] / yes.c
diff --git a/yes.c b/yes.c
index 11fa537a0488a3238d086b543dba142f6e5f61a9..7d9596d0bf72156b53426ec0013254a6fdd127a1 100644 (file)
--- a/yes.c
+++ b/yes.c
  *
  */
 
-#include "internal.h"
+/* getopt not needed */
+
 #include <stdio.h>
+#include <stdlib.h>
+#include "busybox.h"
 
 extern int yes_main(int argc, char **argv)
 {
        int i;
 
        if (argc >= 2 && *argv[1] == '-')
-               usage(yes_usage);
+               show_usage();
 
        if (argc == 1) {
                while (1)