From d18a3a20dbafc4023b1c636b4e9b4bb80902c1e8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 25 Oct 2006 12:46:03 +0000 Subject: use skip_whitespace where appropriate --- 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 5ced48f..2c5e231 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.1