aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-09 21:24:12 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-09 21:24:12 +0000
commit3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332 (patch)
treec9e6d3d695cbb2449132428a32fb6c309aad870f /archival
parentdd91724aa089e344d0f05e40a338dcce481c1845 (diff)
downloadbusybox-3e6ff9017f5aa4ea41de2520a3f6d29fb20e0332.tar.gz
A cleanup patch from Jeff Garzik to static-ify a number of
namespace polluting things that really should be static.
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c6
-rw-r--r--archival/tar.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 0e4fd8efc..4e53652e4 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -79,9 +79,9 @@ static const char *statuswords[][10] = {
"post-inst-failed", "removal-failed", 0 }
};
-const int color_white = 0;
-const int color_grey = 1;
-const int color_black = 2;
+static const int color_white = 0;
+static const int color_grey = 1;
+static const int color_black = 2;
/* data structures */
typedef struct package_s {
diff --git a/archival/tar.c b/archival/tar.c
index a9363d5ad..38a8d9a04 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -150,7 +150,7 @@ static int writeTarFile(const char* tarName, int verboseFlag, char **argv,
#ifdef BB_FEATURE_TAR_GZIP
/* Signal handler for when child gzip process dies... */
-void child_died()
+static void child_died()
{
fflush(stdout);
fflush(stderr);
@@ -186,7 +186,7 @@ extern int tar_unzip_init(int tarFd)
#endif
#if defined BB_FEATURE_TAR_EXCLUDE
-struct option longopts[] = {
+static struct option longopts[] = {
{ "exclude", 1, NULL, 'e' },
{ NULL, 0, NULL, 0 }
};
@@ -574,7 +574,7 @@ readTarHeader(struct TarHeader *rawHeader, struct TarInfo *header)
return( FALSE);
}
-int exclude_file(char **excluded_files, const char *file)
+static int exclude_file(char **excluded_files, const char *file)
{
int i;
@@ -601,7 +601,7 @@ int exclude_file(char **excluded_files, const char *file)
return 0;
}
-int extract_file(char **extract_files, const char *file)
+static int extract_file(char **extract_files, const char *file)
{
int i;