diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-04-16 19:39:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-04-16 19:39:00 +0000 |
commit | 14f5c8d764ab7429367feb407ab86191054e6a8a (patch) | |
tree | 2aa792b8a9d8f7af365c456f19f34a963236c26d /archival/libunarchive | |
parent | a77b4f39708306d44058d7ca1683f448f51c5fce (diff) | |
download | busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.gz busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.bz2 busybox-w32-14f5c8d764ab7429367feb407ab86191054e6a8a.zip |
Patch from Bernhard Fischer to make a bunch of symbols static
which were otherwise cluttering the global namespace.
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/check_header_gzip.c | 1 | ||||
-rw-r--r-- | archival/libunarchive/decompress_uncompress.c | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/archival/libunarchive/check_header_gzip.c b/archival/libunarchive/check_header_gzip.c index 13832c240..9e065c4fd 100644 --- a/archival/libunarchive/check_header_gzip.c +++ b/archival/libunarchive/check_header_gzip.c | |||
@@ -1,6 +1,7 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | #include <unistd.h> | 2 | #include <unistd.h> |
3 | #include "libbb.h" | 3 | #include "libbb.h" |
4 | #include "unarchive.h" /* for external decl of check_header_gzip */ | ||
4 | 5 | ||
5 | extern void check_header_gzip(int src_fd) | 6 | extern void check_header_gzip(int src_fd) |
6 | { | 7 | { |
diff --git a/archival/libunarchive/decompress_uncompress.c b/archival/libunarchive/decompress_uncompress.c index e39872cbe..a3fcf64e2 100644 --- a/archival/libunarchive/decompress_uncompress.c +++ b/archival/libunarchive/decompress_uncompress.c | |||
@@ -65,23 +65,23 @@ | |||
65 | #define MAXCODE(n) (1L << (n)) | 65 | #define MAXCODE(n) (1L << (n)) |
66 | 66 | ||
67 | /* Block compress mode -C compatible with 2.0 */ | 67 | /* Block compress mode -C compatible with 2.0 */ |
68 | int block_mode = BLOCK_MODE; | 68 | static int block_mode = BLOCK_MODE; |
69 | 69 | ||
70 | /* user settable max # bits/code */ | 70 | /* user settable max # bits/code */ |
71 | int maxbits = BITS; | 71 | static int maxbits = BITS; |
72 | 72 | ||
73 | /* Exitcode of compress (-1 no file compressed) */ | 73 | /* Exitcode of compress (-1 no file compressed) */ |
74 | int exit_code = -1; | 74 | static int exit_code = -1; |
75 | 75 | ||
76 | /* Input buffer */ | 76 | /* Input buffer */ |
77 | unsigned char inbuf[IBUFSIZ + 64]; | 77 | static unsigned char inbuf[IBUFSIZ + 64]; |
78 | 78 | ||
79 | /* Output buffer */ | 79 | /* Output buffer */ |
80 | unsigned char outbuf[OBUFSIZ + 2048]; | 80 | static unsigned char outbuf[OBUFSIZ + 2048]; |
81 | 81 | ||
82 | 82 | ||
83 | long int htab[HSIZE]; | 83 | static long int htab[HSIZE]; |
84 | unsigned short codetab[HSIZE]; | 84 | static unsigned short codetab[HSIZE]; |
85 | 85 | ||
86 | #define htabof(i) htab[i] | 86 | #define htabof(i) htab[i] |
87 | #define codetabof(i) codetab[i] | 87 | #define codetabof(i) codetab[i] |