diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-22 22:28:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-22 22:28:08 +0200 |
commit | c0dab37d0a2e079d0e0c85aa979439373e9096ca (patch) | |
tree | a9604c6673dfef0726eebba516c5674bcf40ef3e /libbb/ask_confirmation.c | |
parent | 6935ec9c0b2ac58b1ddc206c21bea36582e1f233 (diff) | |
download | busybox-w32-c0dab37d0a2e079d0e0c85aa979439373e9096ca.tar.gz busybox-w32-c0dab37d0a2e079d0e0c85aa979439373e9096ca.tar.bz2 busybox-w32-c0dab37d0a2e079d0e0c85aa979439373e9096ca.zip |
*: remove last function calls to isspace
function old new delta
xstrtoul_range_sfx 232 231 -1
xstrtoull_range_sfx 295 293 -2
trim 82 80 -2
trim_trailing_spaces_and_print 57 52 -5
isspace 18 - -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/ask_confirmation.c')
-rw-r--r-- | libbb/ask_confirmation.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/ask_confirmation.c b/libbb/ask_confirmation.c index d08bc515e..9dfbd15cf 100644 --- a/libbb/ask_confirmation.c +++ b/libbb/ask_confirmation.c | |||
@@ -20,9 +20,7 @@ int FAST_FUNC bb_ask_confirmation(void) | |||
20 | int c; | 20 | int c; |
21 | 21 | ||
22 | while (((c = getchar()) != EOF) && (c != '\n')) { | 22 | while (((c = getchar()) != EOF) && (c != '\n')) { |
23 | /* Make sure we get the actual function call for isspace, | 23 | if (first && !isspace(c)) { |
24 | * as speed is not critical here. */ | ||
25 | if (first && !(isspace)(c)) { | ||
26 | --first; | 24 | --first; |
27 | if ((c == 'y') || (c == 'Y')) { | 25 | if ((c == 'y') || (c == 'Y')) { |
28 | ++retval; | 26 | ++retval; |