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:
parent
4e4c9629e6
commit
0d1e744c20
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue