Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate.
[oweals/busybox.git] / console-tools / clear.c
index e43ed0e02d90e5569632148c3196771499355539..05480370356078af52dff737ac787c5dc23f82a7 100644 (file)
@@ -27,8 +27,7 @@
 #include "busybox.h"
 
 
-extern int clear_main(int argc, char **argv)
+int clear_main(int argc, char **argv)
 {
-       printf("\033[H\033[J");
-       return EXIT_SUCCESS;
+       return printf("\033[H\033[J") != 6;
 }