From 0d1e744c20aab14e7fbe3efcb41e43aaf2ab4db4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 20 Jul 2018 13:44:53 +0200 Subject: 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 --- libmount/src/tab_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src') diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c index da1f2a5b0..6ecd53f72 100644 --- a/libmount/src/tab_parse.c +++ b/libmount/src/tab_parse.c @@ -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; -- cgit v1.2.3-55-g7522