summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen1999-10-19 20:03:34 +0000
committerEric Andersen1999-10-19 20:03:34 +0000
commite77ae3a2c0328590b43447550bdb1284650b8236 (patch)
tree1e46d5cf36870771a4f3cedfe84f6161c3871131 /archival
parenta3f09076ef5e9a2c26b4d0728cd066bba6c474e4 (diff)
downloadbusybox-e77ae3a2c0328590b43447550bdb1284650b8236.zip
busybox-e77ae3a2c0328590b43447550bdb1284650b8236.tar.gz
Added sfdisk. Ststic-ified a bunch of stuff.
Diffstat (limited to 'archival')
-rw-r--r--archival/gzip.c18
-rw-r--r--archival/tar.c17
2 files changed, 16 insertions, 19 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index c7fb25e..0ed20b6 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -11,7 +11,7 @@
#error you need zcat to have gzip support!
#endif
-const char gzip_usage[] = "gzip\nignores all command line arguments\ncompress stdin to stdout with -9 compression\n";
+static const char gzip_usage[] = "gzip\nignores all command line arguments\ncompress stdin to stdout with -9 compression\n";
/* gzip.h -- common declarations for all gzip modules
* Copyright (C) 1992-1993 Jean-loup Gailly.
@@ -380,7 +380,7 @@ extern int block_mode; /* block compress mode -C compatible with 2.0 */
# undef LZW
#endif
-/* $Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $ */
+/* $Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $ */
/* tailor.h -- target dependent definitions
* Copyright (C) 1992-1993 Jean-loup Gailly.
* This is free software; you can redistribute it and/or modify it under the
@@ -391,7 +391,7 @@ extern int block_mode; /* block compress mode -C compatible with 2.0 */
* The target dependent functions should be defined in tailor.c.
*/
-/* $Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $ */
+/* $Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $ */
#if defined(__MSDOS__) && !defined(MSDOS)
# define MSDOS
@@ -767,7 +767,7 @@ extern int block_mode; /* block compress mode -C compatible with 2.0 */
#endif
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
/* ===========================================================================
@@ -976,7 +976,7 @@ void copy_block(buf, len, header)
#include <stdio.h>
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
/* ===========================================================================
@@ -1592,7 +1592,7 @@ ulg deflate()
*/
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
#include <ctype.h>
@@ -1925,7 +1925,7 @@ local void do_exit(int exitcode)
#include <ctype.h>
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
/* ===========================================================================
@@ -2943,7 +2943,7 @@ local void set_file_type()
*/
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
#include <ctype.h>
@@ -3142,7 +3142,7 @@ void display_ratio(num, den, file)
*/
#ifdef RCSID
-static char rcsid[] = "$Id: gzip.c,v 1.3 1999/10/16 15:48:40 andersen Exp $";
+static char rcsid[] = "$Id: gzip.c,v 1.4 1999/10/19 20:03:34 andersen Exp $";
#endif
#include <ctype.h>
diff --git a/archival/tar.c b/archival/tar.c
index f222c3c..b404ab0 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -12,10 +12,15 @@
#include "internal.h"
+#include <stdio.h>
+#include <dirent.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <time.h>
-#ifdef BB_TAR
-const char tar_usage[] =
+static const char tar_usage[] =
"Create, extract, or list files from a TAR file\n\n"
"usage: tar -[cxtvOf] [tarFileName] [FILE] ...\n"
"\tc=create, x=extract, t=list contents, v=verbose,\n"
@@ -23,13 +28,6 @@ const char tar_usage[] =
-#include <stdio.h>
-#include <dirent.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <time.h>
-
/*
* Tar file constants.
*/
@@ -1151,5 +1149,4 @@ wantFileName (const char *fileName, int fileCount, char **fileTable)
-#endif
/* END CODE */