Update internal.h to conditionally include asm/string.h
[oweals/busybox.git] / tee.c
diff --git a/tee.c b/tee.c
index 018fe117bed77627a57df69cefcd4d5315c455de..c9b5410d312347d59e200b6497bb5566844d941c 100644 (file)
--- a/tee.c
+++ b/tee.c
@@ -3,7 +3,7 @@
  * Mini tee implementation for busybox
  *
  *
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999,2000 by Lineo, inc.
  * Written by John Beppu <beppu@lineo.com>
  *
  * This program is free software; you can redistribute it and/or modify
 #include <stdio.h>
 
 static const char tee_usage[] =
-       "tee [OPTION]... [FILE]...\n\n"
-       "Copy standard input to each FILE, and also to standard output.\n\n"
+       "tee [OPTION]... [FILE]...\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+       "\nCopy standard input to each FILE, and also to standard output.\n\n"
        "Options:\n" "\t-a\tappend to the given FILEs, do not overwrite\n"
 #if 0
        "\t-i\tignore interrupt signals\n"
 #endif
+#endif
 ;
 
 
@@ -128,7 +130,7 @@ int tee_main(int argc, char **argv)
        /* Don't bother to close files  Exit does that 
         * automagically, so we can save a few bytes */
        /* free(FileList); */
-       exit(0);
+       return(0);
 }
 
-/* $Id: tee.c,v 1.8 2000/03/23 01:09:18 erik Exp $ */
+/* $Id: tee.c,v 1.11 2000/06/19 17:25:40 andersen Exp $ */