From 656a38a371988abbeb559f89737f222dae1ebbd2 Mon Sep 17 00:00:00 2001 From: vda Date: Wed, 25 Oct 2006 12:46:03 +0000 Subject: use skip_whitespace where appropriate git-svn-id: svn://busybox.net/trunk/busybox@16435 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- util-linux/mount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util-linux') diff --git a/util-linux/mount.c b/util-linux/mount.c index 5ced48fea..2c5e23177 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -203,8 +203,7 @@ static llist_t *get_block_backed_filesystems(void) while ((buf = xmalloc_getline(f)) != 0) { if (!strncmp(buf, "nodev", 5) && isspace(buf[5])) continue; - fs = buf; - while (isspace(*fs)) fs++; + fs = skip_whitespace(buf); if (*fs=='#' || *fs=='*' || !*fs) continue; llist_add_to_end(&list, xstrdup(fs)); -- cgit v1.2.3-55-g6feb