summaryrefslogtreecommitdiff
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-25 12:46:03 +0000
committerDenis Vlasenko2006-10-25 12:46:03 +0000
commitd18a3a20dbafc4023b1c636b4e9b4bb80902c1e8 (patch)
tree5f3775e14e05880c7977402384756e6ca3102096 /miscutils/dc.c
parentc8400a216206a848f6c4b83b668df37f6fb546ee (diff)
downloadbusybox-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.zip
busybox-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.tar.gz
use skip_whitespace where appropriate
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c
index fd53901..7b64057 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -179,10 +179,10 @@ static void stack_machine(const char *argument)
*/
static char *get_token(char **buffer)
{
- char *start = NULL;
- char *current = *buffer;
+ char *start = NULL;
+ char *current;
- while (isspace(*current)) { current++; }
+ current = skip_whitespace(*buffer);
if (*current != 0) {
start = current;
while (!isspace(*current) && *current != 0) { current++; }