X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=clear.c;h=503bafa16e31bdd95e1a492ab72b49ce0ca45632;hb=6fc92a506ab3c490a4dc028334c908f19c0d0806;hp=bc813064ec042bc9072627890fb155f95db5afd3;hpb=2ce1edcf544ac675e6762c9861a6b918401ea716;p=oweals%2Fbusybox.git diff --git a/clear.c b/clear.c index bc813064e..503bafa16 100644 --- a/clear.c +++ b/clear.c @@ -1,7 +1,10 @@ +/* vi: set sw=4 ts=4: */ /* * Mini clear implementation for busybox * - * Copyright (C) 1998 by Erik Andersen + * + * Copyright (C) 1999,2000,2001 by Lineo, inc. + * Written by Erik Andersen , * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,13 +22,13 @@ * */ -#include "internal.h" #include +#include +#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; }