diff options
author | Eric Andersen | 2005-04-16 19:39:00 +0000 |
---|---|---|
committer | Eric Andersen | 2005-04-16 19:39:00 +0000 |
commit | 14f5c8d764ab7429367feb407ab86191054e6a8a (patch) | |
tree | 2aa792b8a9d8f7af365c456f19f34a963236c26d /coreutils | |
parent | a77b4f39708306d44058d7ca1683f448f51c5fce (diff) | |
download | busybox-14f5c8d764ab7429367feb407ab86191054e6a8a.zip busybox-14f5c8d764ab7429367feb407ab86191054e6a8a.tar.gz |
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 bd1c9fc..189a907 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) } /* This could become a common function for md5 as well, by using md5_stream */ -extern int hash_files(int argc, char **argv, const uint8_t hash_algo) +static int hash_files(int argc, char **argv, const uint8_t hash_algo) { int return_value = EXIT_SUCCESS; uint8_t *hash_value; diff --git a/coreutils/sort.c b/coreutils/sort.c index c701b5e..73505e3 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c @@ -31,7 +31,7 @@ #include <unistd.h> #include "busybox.h" -int global_flags; +static int global_flags; /* sort [-m][-o output][-bdfinru][-t char][-k keydef]... [file...] @@ -57,9 +57,9 @@ int global_flags; #ifdef CONFIG_SORT_BIG -char key_separator; +static char key_separator; -struct sort_key +static struct sort_key { struct sort_key *next_key; /* linked list */ unsigned short range[4]; /* start word, start char, end word, end char */ |