summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2018-07-20 13:51:52 +0200
committerKarel Zak2018-07-20 13:51:52 +0200
commita679b0823fd6268d0b3e0412845281259b1e83d4 (patch)
tree53579d2cf24916ea4428b45859538b0b1a4279fd /libmount/src/tab_parse.c
parentlibmount: use const char in swaps parser (diff)
downloadkernel-qcow2-util-linux-a679b0823fd6268d0b3e0412845281259b1e83d4.tar.gz
kernel-qcow2-util-linux-a679b0823fd6268d0b3e0412845281259b1e83d4.tar.xz
kernel-qcow2-util-linux-a679b0823fd6268d0b3e0412845281259b1e83d4.zip
libmount: add missing const
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/tab_parse.c')
-rw-r--r--libmount/src/tab_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/tab_parse.c b/libmount/src/tab_parse.c
index 6ecd53f72..8793f5e6a 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -383,7 +383,7 @@ static int mnt_parse_swaps_line(struct libmnt_fs *fs, const char *s)
*
* mountinfo: "<number> <number> ... "
*/
-static int guess_table_format(char *line)
+static int guess_table_format(const char *line)
{
unsigned int a, b;