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 /coreutils | |
| 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 'coreutils')
| -rw-r--r-- | coreutils/md5_sha1_sum.c | 2 | ||||
| -rw-r--r-- | coreutils/sort.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index bd1c9fc29..189a90778 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
| @@ -80,7 +80,7 @@ static uint8_t *hash_file(const char *filename, uint8_t hash_algo) | |||
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | /* This could become a common function for md5 as well, by using md5_stream */ | 82 | /* This could become a common function for md5 as well, by using md5_stream */ |
| 83 | extern int hash_files(int argc, char **argv, const uint8_t hash_algo) | 83 | static int hash_files(int argc, char **argv, const uint8_t hash_algo) |
| 84 | { | 84 | { |
| 85 | int return_value = EXIT_SUCCESS; | 85 | int return_value = EXIT_SUCCESS; |
| 86 | uint8_t *hash_value; | 86 | uint8_t *hash_value; |
diff --git a/coreutils/sort.c b/coreutils/sort.c index c701b5e4f..73505e365 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | #include <unistd.h> | 31 | #include <unistd.h> |
| 32 | #include "busybox.h" | 32 | #include "busybox.h" |
| 33 | 33 | ||
| 34 | int global_flags; | 34 | static int global_flags; |
| 35 | 35 | ||
| 36 | /* | 36 | /* |
| 37 | sort [-m][-o output][-bdfinru][-t char][-k keydef]... [file...] | 37 | sort [-m][-o output][-bdfinru][-t char][-k keydef]... [file...] |
| @@ -57,9 +57,9 @@ int global_flags; | |||
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | #ifdef CONFIG_SORT_BIG | 59 | #ifdef CONFIG_SORT_BIG |
| 60 | char key_separator; | 60 | static char key_separator; |
| 61 | 61 | ||
| 62 | struct sort_key | 62 | static struct sort_key |
| 63 | { | 63 | { |
| 64 | struct sort_key *next_key; /* linked list */ | 64 | struct sort_key *next_key; /* linked list */ |
| 65 | unsigned short range[4]; /* start word, start char, end word, end char */ | 65 | unsigned short range[4]; /* start word, start char, end word, end char */ |
