libmount: use const char in swaps parser

The parser does not modify the string, so let's keep it "const char".

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-07-20 13:44:53 +02:00
parent 4e4c9629e6
commit 0d1e744c20
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ enomem:
/*
* Parses one line from /proc/swaps
*/
static int mnt_parse_swaps_line(struct libmnt_fs *fs, char *s)
static int mnt_parse_swaps_line(struct libmnt_fs *fs, const char *s)
{
uintmax_t fsz, usz;
int rc;