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 /win32 | |
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 'win32')
-rw-r--r-- | win32/mingw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index a58cb7b01..bedf14784 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1090,8 +1090,7 @@ int has_exe_suffix(const char *name) | |||
1090 | 1090 | ||
1091 | int has_exe_suffix_or_dot(const char *name) | 1091 | int has_exe_suffix_or_dot(const char *name) |
1092 | { | 1092 | { |
1093 | int len = strlen(name); | 1093 | return last_char_is(name, '.') || has_win_suffix(name, 0); |
1094 | return (len > 0 && name[len-1] == '.') || has_win_suffix(name, 0); | ||
1095 | } | 1094 | } |
1096 | 1095 | ||
1097 | /* check if path can be made into an executable by adding a suffix; | 1096 | /* check if path can be made into an executable by adding a suffix; |