Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-06-24 10:31:30 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2020-06-24 10:31:30 +0300
commitd5314e71294d228cff5d86e00d15661461f68fc9 (patch)
tree82dbf50b79f7bde1889042dfd3214a7307e5cb12
parent7c443d110d4dc51ba48bad8ed1427716b754bf2e (diff)
suppress a few compile warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/lineedit.c2
-rw-r--r--shell/hush.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index de236dea0..e40a72064 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -99,7 +99,7 @@ static bool BB_ispunct(CHAR_T c)
# if ENABLE_FEATURE_EDITING_VI
static bool BB_isalnum_or_underscore(CHAR_T c)
{
- return ((unsigned)c < 256 && isalnum(c)) || c == '_';
+ return isalnum(c) || c == '_';
}
# endif
# define BB_ispunct(c) ispunct(c)
diff --git a/shell/hush.c b/shell/hush.c
index cab7ea5b0..2cf2170ca 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -7917,7 +7917,7 @@ static const struct built_in_command *find_builtin(const char *name)
return find_builtin_helper(name, bltins2, &bltins2[ARRAY_SIZE(bltins2)]);
}
-#if EDITING_HAS_get_exe_name
+#if ENABLE_HUSH_JOB && EDITING_HAS_get_exe_name
static const char * FAST_FUNC get_builtin_name(int i)
{
if (/*i >= 0 && */ i < ARRAY_SIZE(bltins1)) {