use skip_whitespace where appropriate
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user