diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-02 13:18:18 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-02 13:18:18 +0000 |
commit | 99daecdac917d149f4643e090cb705df135e2ed1 (patch) | |
tree | 22b1e8d57d97d36b2c46f6c93983fc06a1cd5ba7 /libbb/inode_hash.c | |
parent | 5b726f8a78c33e117c2a968739b1b4a6964905f8 (diff) | |
download | busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.tar.gz busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.tar.bz2 busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.zip |
Minor improvements to build
Exclude source files in libbb that aren't used by busybox-w32. This
speeds up the build marginally. They can always be reinstated if
necessary.
Provide fake routines for everything in inode_hash.c so that it
can be excluded. inode_hash.c is now unchanged from upstream.
Use last_char_is in has_exe_suffix_or_dot. It doesn't save any
bytes but it makes the code neater.
Diffstat (limited to 'libbb/inode_hash.c')
-rw-r--r-- | libbb/inode_hash.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 770d1a286..4142813e3 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c | |||
@@ -55,7 +55,6 @@ char* FAST_FUNC is_in_ino_dev_hashtable(const struct stat *statbuf) | |||
55 | return NULL; | 55 | return NULL; |
56 | } | 56 | } |
57 | 57 | ||
58 | #if !ENABLE_PLATFORM_MINGW32 | ||
59 | /* Add statbuf to statbuf hash table */ | 58 | /* Add statbuf to statbuf hash table */ |
60 | void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) | 59 | void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) |
61 | { | 60 | { |
@@ -77,7 +76,6 @@ void FAST_FUNC add_to_ino_dev_hashtable(const struct stat *statbuf, const char * | |||
77 | bucket->next = ino_dev_hashtable[i]; | 76 | bucket->next = ino_dev_hashtable[i]; |
78 | ino_dev_hashtable[i] = bucket; | 77 | ino_dev_hashtable[i] = bucket; |
79 | } | 78 | } |
80 | #endif | ||
81 | 79 | ||
82 | #if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP | 80 | #if ENABLE_DU || ENABLE_FEATURE_CLEAN_UP |
83 | /* Clear statbuf hash table */ | 81 | /* Clear statbuf hash table */ |