diff options
author | Karel Zak | 2018-07-20 13:44:53 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-20 13:49:08 +0200 |
commit | 0d1e744c20aab14e7fbe3efcb41e43aaf2ab4db4 (patch) | |
tree | b17b34d1103118b450154c21a677698d921e2206 | |
parent | libmount: use const char in mountinfo parser (diff) | |
download | kernel-qcow2-util-linux-0d1e744c20aab14e7fbe3efcb41e43aaf2ab4db4.tar.gz kernel-qcow2-util-linux-0d1e744c20aab14e7fbe3efcb41e43aaf2ab4db4.tar.xz kernel-qcow2-util-linux-0d1e744c20aab14e7fbe3efcb41e43aaf2ab4db4.zip |
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>
-rw-r--r-- | libmount/src/tab_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |