summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/fs.c
diff options
context:
space:
mode:
authorKarel Zak2010-08-06 13:03:34 +0200
committerKarel Zak2011-01-03 12:28:41 +0100
commit7714c689b9141cc26acdc80311d663992288b1a0 (patch)
tree972bd4985396b3924de43b4544d2a56813dfa938 /shlibs/mount/src/fs.c
parentlibmount: fix datatype for mountflags (diff)
downloadkernel-qcow2-util-linux-7714c689b9141cc26acdc80311d663992288b1a0.tar.gz
kernel-qcow2-util-linux-7714c689b9141cc26acdc80311d663992288b1a0.tar.xz
kernel-qcow2-util-linux-7714c689b9141cc26acdc80311d663992288b1a0.zip
libmount: use mnt_fs for mtab API
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/fs.c')
-rw-r--r--shlibs/mount/src/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/mount/src/fs.c b/shlibs/mount/src/fs.c
index b0de9eaef..4931d0785 100644
--- a/shlibs/mount/src/fs.c
+++ b/shlibs/mount/src/fs.c
@@ -62,7 +62,7 @@ void mnt_free_fs(mnt_fs *fs)
free(fs);
}
-static inline int cpy_str_item(void *new, void *old, size_t offset)
+static inline int cpy_str_item(void *new, const void *old, size_t offset)
{
char **o = (char **) (old + offset);
char **n = (char **) (new + offset);
@@ -85,7 +85,7 @@ static inline int cpy_str_item(void *new, void *old, size_t offset)
*
* Returns: copy of @fs
*/
-mnt_fs *mnt_copy_fs(mnt_fs *fs)
+mnt_fs *mnt_copy_fs(const mnt_fs *fs)
{
mnt_fs *n = mnt_new_fs();