aboutsummaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-10 09:38:35 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-10 09:38:35 +0000
commitde17ece1dbbb3a5399e82fb5b820bb44997f8ca4 (patch)
treebf440665c9a99743cc22195351b0eec490ab8204 /miscutils/dc.c
parent8b1fab2879d57b044342ee3fece0825d4d3a509a (diff)
downloadbusybox-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.gz
busybox-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.bz2
- use skip_non_whitespace() where appropriate
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 8c9d77fc3..1953a9489 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -182,9 +182,7 @@ static char *get_token(char **buffer)
current = skip_whitespace(*buffer);
if (*current != 0) {
start = current;
- while (!isspace(*current) && *current != 0) {
- current++;
- }
+ current = skip_non_whitespace(current);
*buffer = current;
}
return start;