From e77ae3a2c0328590b43447550bdb1284650b8236 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 19 Oct 1999 20:03:34 +0000 Subject: Added sfdisk. Ststic-ified a bunch of stuff. --- archival/gzip.c | 18 +++++++++--------- archival/tar.c | 17 +++++++---------- 2 files changed, 16 insertions(+), 19 deletions(-) (limited to 'archival') 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 #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 @@ -1925,7 +1925,7 @@ local void do_exit(int exitcode) #include #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 @@ -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 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 +#include +#include +#include +#include +#include -#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 -#include -#include -#include -#include -#include - /* * Tar file constants. */ @@ -1151,5 +1149,4 @@ wantFileName (const char *fileName, int fileCount, char **fileTable) -#endif /* END CODE */ -- cgit v1.1