diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 00:28:08 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 00:28:08 +0400 |
commit | c0dab37d0a2e079d0e0c85aa979439373e9096ca (patch) | |
tree | a9604c6673dfef0726eebba516c5674bcf40ef3e /editors/sed.c | |
parent | 6935ec9c0b2ac58b1ddc206c21bea36582e1f233 (diff) |
*: 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 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/sed.c b/editors/sed.c index 9b360b669..27c345921 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -423,10 +423,10 @@ static const char *parse_cmd_args(sed_cmd_t *sed_cmd, const char *cmdstr) if (*cmdstr == '\n' || *cmdstr == '\\') { cmdstr++; break; - } else if (isspace(*cmdstr)) - cmdstr++; - else + } + if (!isspace(*cmdstr)) break; + cmdstr++; } sed_cmd->string = xstrdup(cmdstr); /* "\anychar" -> "anychar" */ |