diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-11-07 06:52:13 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-11-07 06:52:13 +0000 |
commit | 63a862272cc5c0cc8e15c8d95dfb9e8944eb944e (patch) | |
tree | 7540b55fa5eaf6f2c271a89017822c1626371a63 | |
parent | eb69ead09102ef9cb404a4b3e72b6615321b49e6 (diff) | |
download | busybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.tar.gz busybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.tar.bz2 busybox-w32-63a862272cc5c0cc8e15c8d95dfb9e8944eb944e.zip |
Cleanup of duplicated symbols -- found by compiling with
LDFLAGS += -Wl,-warn-common
-rw-r--r-- | archival/gunzip.c | 44 | ||||
-rw-r--r-- | archival/gzip.c | 41 | ||||
-rw-r--r-- | cmdedit.c | 2 | ||||
-rw-r--r-- | gunzip.c | 44 | ||||
-rw-r--r-- | gzip.c | 41 | ||||
-rw-r--r-- | more.c | 2 | ||||
-rw-r--r-- | shell/cmdedit.c | 2 | ||||
-rw-r--r-- | util-linux/more.c | 2 |
8 files changed, 74 insertions, 104 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index 0c9d40670..1ff3c40fb 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -155,32 +155,28 @@ typedef unsigned short ush; | |||
155 | typedef unsigned long ulg; | 155 | typedef unsigned long ulg; |
156 | typedef int file_t; /* Do not use stdio */ | 156 | typedef int file_t; /* Do not use stdio */ |
157 | 157 | ||
158 | uch *inbuf; | 158 | static uch *inbuf; |
159 | uch *outbuf; | 159 | static uch *outbuf; |
160 | ush *d_buf; | 160 | static ush *d_buf; |
161 | uch *window; | 161 | static uch *window; |
162 | ush *tab_prefix0; | 162 | static ush *tab_prefix0; |
163 | ush *tab_prefix1; | 163 | static ush *tab_prefix1; |
164 | 164 | ||
165 | /* local variables */ | 165 | /* local variables */ |
166 | int test_mode = 0; /* check file integrity option */ | 166 | static int test_mode = 0; /* check file integrity option */ |
167 | int foreground; /* set if program run in foreground */ | 167 | static int foreground; /* set if program run in foreground */ |
168 | int maxbits = BITS; /* max bits per code for LZW */ | 168 | static int method = DEFLATED; /* compression method */ |
169 | int method = DEFLATED; /* compression method */ | 169 | static int exit_code = OK; /* program exit code */ |
170 | int exit_code = OK; /* program exit code */ | 170 | static int last_member; /* set for .zip and .Z files */ |
171 | int last_member; /* set for .zip and .Z files */ | 171 | static int part_nb; /* number of parts in .gz file */ |
172 | int part_nb; /* number of parts in .gz file */ | 172 | static long ifile_size; /* input file size, -1 for devices (debug only) */ |
173 | long ifile_size; /* input file size, -1 for devices (debug only) */ | 173 | static long bytes_in; /* number of input bytes */ |
174 | long bytes_in; /* number of input bytes */ | 174 | static long bytes_out; /* number of output bytes */ |
175 | long bytes_out; /* number of output bytes */ | 175 | static int ifd; /* input file descriptor */ |
176 | long total_in = 0; /* input bytes for all files */ | 176 | static int ofd; /* output file descriptor */ |
177 | long total_out = 0; /* output bytes for all files */ | 177 | static unsigned insize; /* valid bytes in inbuf */ |
178 | struct stat istat; /* status for input file */ | 178 | static unsigned inptr; /* index of next byte to be processed in inbuf */ |
179 | int ifd; /* input file descriptor */ | 179 | static unsigned outcnt; /* bytes in output buffer */ |
180 | int ofd; /* output file descriptor */ | ||
181 | unsigned insize; /* valid bytes in inbuf */ | ||
182 | unsigned inptr; /* index of next byte to be processed in inbuf */ | ||
183 | unsigned outcnt; /* bytes in output buffer */ | ||
184 | 180 | ||
185 | unsigned hufts; /* track memory usage */ | 181 | unsigned hufts; /* track memory usage */ |
186 | ulg bb; /* bit buffer */ | 182 | ulg bb; /* bit buffer */ |
diff --git a/archival/gzip.c b/archival/gzip.c index 6b25e47df..add94d0d7 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -1754,34 +1754,23 @@ DECLARE(ush, tab_prefix1, 1L << (BITS - 1)); | |||
1754 | 1754 | ||
1755 | /* local variables */ | 1755 | /* local variables */ |
1756 | 1756 | ||
1757 | int ascii = 0; /* convert end-of-lines to local OS conventions */ | 1757 | static int foreground; /* set if program run in foreground */ |
1758 | int decompress = 0; /* decompress (-d) */ | ||
1759 | int no_name = -1; /* don't save or restore the original file name */ | ||
1760 | int no_time = -1; /* don't save or restore the original file time */ | ||
1761 | int foreground; /* set if program run in foreground */ | ||
1762 | char *progname; /* program name */ | ||
1763 | static int method = DEFLATED; /* compression method */ | 1758 | static int method = DEFLATED; /* compression method */ |
1764 | static int exit_code = OK; /* program exit code */ | 1759 | static int exit_code = OK; /* program exit code */ |
1765 | int save_orig_name; /* set if original name must be saved */ | 1760 | static int part_nb; /* number of parts in .gz file */ |
1766 | int last_member; /* set for .zip and .Z files */ | 1761 | static long time_stamp; /* original time stamp (modification time) */ |
1767 | int part_nb; /* number of parts in .gz file */ | 1762 | static long ifile_size; /* input file size, -1 for devices (debug only) */ |
1768 | long time_stamp; /* original time stamp (modification time) */ | 1763 | static char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ |
1769 | long ifile_size; /* input file size, -1 for devices (debug only) */ | 1764 | static int z_len; /* strlen(z_suffix) */ |
1770 | char *env; /* contents of GZIP env variable */ | 1765 | |
1771 | char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ | 1766 | static long bytes_in; /* number of input bytes */ |
1772 | int z_len; /* strlen(z_suffix) */ | 1767 | static long bytes_out; /* number of output bytes */ |
1773 | 1768 | static char ifname[MAX_PATH_LEN]; /* input file name */ | |
1774 | long bytes_in; /* number of input bytes */ | 1769 | static char ofname[MAX_PATH_LEN]; /* output file name */ |
1775 | long bytes_out; /* number of output bytes */ | 1770 | static int ifd; /* input file descriptor */ |
1776 | char ifname[MAX_PATH_LEN]; /* input file name */ | 1771 | static int ofd; /* output file descriptor */ |
1777 | char ofname[MAX_PATH_LEN]; /* output file name */ | 1772 | static unsigned insize; /* valid bytes in inbuf */ |
1778 | int remove_ofname = 0; /* remove output file on error */ | 1773 | static unsigned outcnt; /* bytes in output buffer */ |
1779 | struct stat istat; /* status for input file */ | ||
1780 | int ifd; /* input file descriptor */ | ||
1781 | int ofd; /* output file descriptor */ | ||
1782 | unsigned insize; /* valid bytes in inbuf */ | ||
1783 | unsigned inptr; /* index of next byte to be processed in inbuf */ | ||
1784 | unsigned outcnt; /* bytes in output buffer */ | ||
1785 | 1774 | ||
1786 | /* local functions */ | 1775 | /* local functions */ |
1787 | 1776 | ||
@@ -69,7 +69,7 @@ static struct history *his_end = NULL; /* Last element in command line list */ | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* Current termio and the previous termio before starting sh */ | 71 | /* Current termio and the previous termio before starting sh */ |
72 | struct termios initial_settings, new_settings; | 72 | static struct termios initial_settings, new_settings; |
73 | 73 | ||
74 | 74 | ||
75 | #ifndef _POSIX_VDISABLE | 75 | #ifndef _POSIX_VDISABLE |
@@ -155,32 +155,28 @@ typedef unsigned short ush; | |||
155 | typedef unsigned long ulg; | 155 | typedef unsigned long ulg; |
156 | typedef int file_t; /* Do not use stdio */ | 156 | typedef int file_t; /* Do not use stdio */ |
157 | 157 | ||
158 | uch *inbuf; | 158 | static uch *inbuf; |
159 | uch *outbuf; | 159 | static uch *outbuf; |
160 | ush *d_buf; | 160 | static ush *d_buf; |
161 | uch *window; | 161 | static uch *window; |
162 | ush *tab_prefix0; | 162 | static ush *tab_prefix0; |
163 | ush *tab_prefix1; | 163 | static ush *tab_prefix1; |
164 | 164 | ||
165 | /* local variables */ | 165 | /* local variables */ |
166 | int test_mode = 0; /* check file integrity option */ | 166 | static int test_mode = 0; /* check file integrity option */ |
167 | int foreground; /* set if program run in foreground */ | 167 | static int foreground; /* set if program run in foreground */ |
168 | int maxbits = BITS; /* max bits per code for LZW */ | 168 | static int method = DEFLATED; /* compression method */ |
169 | int method = DEFLATED; /* compression method */ | 169 | static int exit_code = OK; /* program exit code */ |
170 | int exit_code = OK; /* program exit code */ | 170 | static int last_member; /* set for .zip and .Z files */ |
171 | int last_member; /* set for .zip and .Z files */ | 171 | static int part_nb; /* number of parts in .gz file */ |
172 | int part_nb; /* number of parts in .gz file */ | 172 | static long ifile_size; /* input file size, -1 for devices (debug only) */ |
173 | long ifile_size; /* input file size, -1 for devices (debug only) */ | 173 | static long bytes_in; /* number of input bytes */ |
174 | long bytes_in; /* number of input bytes */ | 174 | static long bytes_out; /* number of output bytes */ |
175 | long bytes_out; /* number of output bytes */ | 175 | static int ifd; /* input file descriptor */ |
176 | long total_in = 0; /* input bytes for all files */ | 176 | static int ofd; /* output file descriptor */ |
177 | long total_out = 0; /* output bytes for all files */ | 177 | static unsigned insize; /* valid bytes in inbuf */ |
178 | struct stat istat; /* status for input file */ | 178 | static unsigned inptr; /* index of next byte to be processed in inbuf */ |
179 | int ifd; /* input file descriptor */ | 179 | static unsigned outcnt; /* bytes in output buffer */ |
180 | int ofd; /* output file descriptor */ | ||
181 | unsigned insize; /* valid bytes in inbuf */ | ||
182 | unsigned inptr; /* index of next byte to be processed in inbuf */ | ||
183 | unsigned outcnt; /* bytes in output buffer */ | ||
184 | 180 | ||
185 | unsigned hufts; /* track memory usage */ | 181 | unsigned hufts; /* track memory usage */ |
186 | ulg bb; /* bit buffer */ | 182 | ulg bb; /* bit buffer */ |
@@ -1754,34 +1754,23 @@ DECLARE(ush, tab_prefix1, 1L << (BITS - 1)); | |||
1754 | 1754 | ||
1755 | /* local variables */ | 1755 | /* local variables */ |
1756 | 1756 | ||
1757 | int ascii = 0; /* convert end-of-lines to local OS conventions */ | 1757 | static int foreground; /* set if program run in foreground */ |
1758 | int decompress = 0; /* decompress (-d) */ | ||
1759 | int no_name = -1; /* don't save or restore the original file name */ | ||
1760 | int no_time = -1; /* don't save or restore the original file time */ | ||
1761 | int foreground; /* set if program run in foreground */ | ||
1762 | char *progname; /* program name */ | ||
1763 | static int method = DEFLATED; /* compression method */ | 1758 | static int method = DEFLATED; /* compression method */ |
1764 | static int exit_code = OK; /* program exit code */ | 1759 | static int exit_code = OK; /* program exit code */ |
1765 | int save_orig_name; /* set if original name must be saved */ | 1760 | static int part_nb; /* number of parts in .gz file */ |
1766 | int last_member; /* set for .zip and .Z files */ | 1761 | static long time_stamp; /* original time stamp (modification time) */ |
1767 | int part_nb; /* number of parts in .gz file */ | 1762 | static long ifile_size; /* input file size, -1 for devices (debug only) */ |
1768 | long time_stamp; /* original time stamp (modification time) */ | 1763 | static char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ |
1769 | long ifile_size; /* input file size, -1 for devices (debug only) */ | 1764 | static int z_len; /* strlen(z_suffix) */ |
1770 | char *env; /* contents of GZIP env variable */ | 1765 | |
1771 | char z_suffix[MAX_SUFFIX + 1]; /* default suffix (can be set with --suffix) */ | 1766 | static long bytes_in; /* number of input bytes */ |
1772 | int z_len; /* strlen(z_suffix) */ | 1767 | static long bytes_out; /* number of output bytes */ |
1773 | 1768 | static char ifname[MAX_PATH_LEN]; /* input file name */ | |
1774 | long bytes_in; /* number of input bytes */ | 1769 | static char ofname[MAX_PATH_LEN]; /* output file name */ |
1775 | long bytes_out; /* number of output bytes */ | 1770 | static int ifd; /* input file descriptor */ |
1776 | char ifname[MAX_PATH_LEN]; /* input file name */ | 1771 | static int ofd; /* output file descriptor */ |
1777 | char ofname[MAX_PATH_LEN]; /* output file name */ | 1772 | static unsigned insize; /* valid bytes in inbuf */ |
1778 | int remove_ofname = 0; /* remove output file on error */ | 1773 | static unsigned outcnt; /* bytes in output buffer */ |
1779 | struct stat istat; /* status for input file */ | ||
1780 | int ifd; /* input file descriptor */ | ||
1781 | int ofd; /* output file descriptor */ | ||
1782 | unsigned insize; /* valid bytes in inbuf */ | ||
1783 | unsigned inptr; /* index of next byte to be processed in inbuf */ | ||
1784 | unsigned outcnt; /* bytes in output buffer */ | ||
1785 | 1774 | ||
1786 | /* local functions */ | 1775 | /* local functions */ |
1787 | 1776 | ||
@@ -49,7 +49,7 @@ | |||
49 | 49 | ||
50 | FILE *cin; | 50 | FILE *cin; |
51 | 51 | ||
52 | struct termios initial_settings, new_settings; | 52 | static struct termios initial_settings, new_settings; |
53 | 53 | ||
54 | void gotsig(int sig) | 54 | void gotsig(int sig) |
55 | { | 55 | { |
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index a59aeebb7..8115e5259 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -69,7 +69,7 @@ static struct history *his_end = NULL; /* Last element in command line list */ | |||
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | /* Current termio and the previous termio before starting sh */ | 71 | /* Current termio and the previous termio before starting sh */ |
72 | struct termios initial_settings, new_settings; | 72 | static struct termios initial_settings, new_settings; |
73 | 73 | ||
74 | 74 | ||
75 | #ifndef _POSIX_VDISABLE | 75 | #ifndef _POSIX_VDISABLE |
diff --git a/util-linux/more.c b/util-linux/more.c index f95cb48ad..ffc8206f2 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -49,7 +49,7 @@ | |||
49 | 49 | ||
50 | FILE *cin; | 50 | FILE *cin; |
51 | 51 | ||
52 | struct termios initial_settings, new_settings; | 52 | static struct termios initial_settings, new_settings; |
53 | 53 | ||
54 | void gotsig(int sig) | 54 | void gotsig(int sig) |
55 | { | 55 | { |