summaryrefslogtreecommitdiff
path: root/networking/ifupdown.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 /networking/ifupdown.c
parentc8400a216206a848f6c4b83b668df37f6fb546ee (diff)
downloadbusybox-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.zip
busybox-d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8.tar.gz
use skip_whitespace where appropriate
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r--networking/ifupdown.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 45407f9..ede2f89 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -572,10 +572,7 @@ static char *next_word(char **buf)
}
/* Skip over leading whitespace */
- word = *buf;
- while (isspace(*word)) {
- ++word;
- }
+ word = skip_whitespace(*buf);
/* Skip over comments */
if (*word == '#') {
@@ -712,9 +709,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename)
}
/* ship any trailing whitespace */
- while (isspace(*buf_ptr)) {
- ++buf_ptr;
- }
+ buf_ptr = skip_whitespace(buf_ptr);
if (buf_ptr[0] != '\0') {
bb_error_msg("too many parameters \"%s\"", buf);