summaryrefslogtreecommitdiff
path: root/mount/mount_mntent.c
diff options
context:
space:
mode:
authorLaMont Jones <lamont@debian.org>2011-01-31 20:15:49 -0700
committerLaMont Jones <lamont@debian.org>2011-01-31 20:15:49 -0700
commit11292d25510e67c83c6580401eccd42d6d6da931 (patch)
treeca5850da93c90f8798d7ff115e0124edffb8bb97 /mount/mount_mntent.c
parent4f9e177060fb5ad6e574598aefdf2d5f50a8b54f (diff)
parent9f55bf3794ca98852dd1f352f993dea60d83a2e1 (diff)
downloadutil-linux-old-11292d25510e67c83c6580401eccd42d6d6da931.tar.gz
Merge remote branch 'origin/master'
Conflicts: mount/mount.8 mount/mount.c
Diffstat (limited to 'mount/mount_mntent.c')
-rw-r--r--mount/mount_mntent.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/mount/mount_mntent.c b/mount/mount_mntent.c
index 08e5bf48..a1e34db0 100644
--- a/mount/mount_mntent.c
+++ b/mount/mount_mntent.c
@@ -27,13 +27,6 @@ skip_spaces(char *s) {
return s;
}
-static char *
-skip_nonspaces(char *s) {
- while (*s && !is_space_or_tab(*s))
- s++;
- return s;
-}
-
/*
* fstat'ing the file and allocating a buffer holding all of it
* may be a bad idea: if the file is /proc/mounts, the stat
@@ -126,17 +119,13 @@ my_getmntent (mntFILE *mfp) {
s = skip_spaces(buf);
} while (*s == '\0' || *s == '#');
- me.mnt_fsname = unmangle(s);
- s = skip_nonspaces(s);
+ me.mnt_fsname = unmangle(s, &s);
s = skip_spaces(s);
- me.mnt_dir = unmangle(s);
- s = skip_nonspaces(s);
+ me.mnt_dir = unmangle(s, &s);
s = skip_spaces(s);
- me.mnt_type = unmangle(s);
- s = skip_nonspaces(s);
+ me.mnt_type = unmangle(s, &s);
s = skip_spaces(s);
- me.mnt_opts = unmangle(s);
- s = skip_nonspaces(s);
+ me.mnt_opts = unmangle(s, &s);
s = skip_spaces(s);
if (isdigit(*s)) {