summaryrefslogtreecommitdiffstats
path: root/libmount/src/tab_parse.c
diff options
context:
space:
mode:
authorKarel Zak2015-08-31 11:38:58 +0200
committerKarel Zak2015-08-31 11:38:58 +0200
commit928f209ceae3fe3995d4ff926bca0d60a23cf744 (patch)
tree387f43f19f8c432bf2e4fe0510db76bfab9098f9 /libmount/src/tab_parse.c
parentlogin: replace siginterrupt with sigaction (diff)
downloadkernel-qcow2-util-linux-928f209ceae3fe3995d4ff926bca0d60a23cf744.tar.gz
kernel-qcow2-util-linux-928f209ceae3fe3995d4ff926bca0d60a23cf744.tar.xz
kernel-qcow2-util-linux-928f209ceae3fe3995d4ff926bca0d60a23cf744.zip
libmount: fix compiler warning [-Wdiscarded-qualifiers]
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 2e55500fe..0fd36282d 100644
--- a/libmount/src/tab_parse.c
+++ b/libmount/src/tab_parse.c
@@ -24,7 +24,7 @@
struct libmnt_parser {
FILE *f; /* fstab, mtab, swaps or mountinfo ... */
- char *filename; /* file name or NULL */
+ const char *filename; /* file name or NULL */
char *buf; /* buffer (the current line content) */
size_t bufsiz; /* size of the buffer */
size_t line; /* current line */