From 14f5c8d764ab7429367feb407ab86191054e6a8a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 16 Apr 2005 19:39:00 +0000 Subject: Patch from Bernhard Fischer to make a bunch of symbols static which were otherwise cluttering the global namespace. --- coreutils/md5_sha1_sum.c | 2 +- coreutils/sort.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'coreutils') 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 #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 */ -- cgit v1.1