diff options
Diffstat (limited to 'libmount')
-rw-r--r-- | libmount/src/tab_parse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index 316aee7f6..da1f2a5b0 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -146,11 +146,12 @@ static int mnt_parse_table_line(struct libmnt_fs *fs, const char *s) /* * Parses one line from a mountinfo file */ -static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, char *s) +static int mnt_parse_mountinfo_line(struct libmnt_fs *fs, const char *s) { int rc, end = 0; unsigned int maj, min; - char *fstype = NULL, *src = NULL, *p; + char *fstype = NULL, *src = NULL; + const char *p; rc = sscanf(s, "%d " /* (1) id */ "%d " /* (2) parent */ |