This is vodz' latest patch. Sorry it took so long...
[oweals/busybox.git] / clear.c
diff --git a/clear.c b/clear.c
index 67a3af983dd9a83edc52ab3c545fefe700bea107..503bafa16e31bdd95e1a492ab72b49ce0ca45632 100644 (file)
--- a/clear.c
+++ b/clear.c
@@ -1,8 +1,9 @@
+/* vi: set sw=4 ts=4: */
 /*
  * Mini clear implementation for busybox
  *
  *
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000,2001 by Lineo, inc.
  * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
  *
  */
 
-#include "internal.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include "busybox.h"
 
 
-extern int
-clear_main(int argc, char** argv)
+extern int clear_main(int argc, char **argv)
 {
        printf("\033[H\033[J");
-       exit( TRUE);
+       return EXIT_SUCCESS;
 }