diff options
author | Karel Zak | 2011-01-10 14:41:42 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-10 14:41:42 +0100 |
commit | c909751e85b8102beba62cad41978437530712ff (patch) | |
tree | ae3d15ba03912e0b3b556ff9cdefa41a108ea9e3 /mount | |
parent | libmount: add mount(8) sample (diff) | |
download | kernel-qcow2-util-linux-c909751e85b8102beba62cad41978437530712ff.tar.gz kernel-qcow2-util-linux-c909751e85b8102beba62cad41978437530712ff.tar.xz kernel-qcow2-util-linux-c909751e85b8102beba62cad41978437530712ff.zip |
mount: fix gcc warning
Diffstat (limited to 'mount')
-rw-r--r-- | mount/mount.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mount/mount.c b/mount/mount.c index ae137f0b5..ae3c6d25c 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1346,8 +1346,8 @@ prepare_mtab_entry(const char *spec, const char *node, const char *type, mtab_update = mnt_new_update(); if (mtab_update && fs) { - char *cn_spec = is_pseudo_fs(type) ? spec : canonicalize(spec); - char *cn_node = canonicalize(node); + const char *cn_spec = is_pseudo_fs(type) ? spec : canonicalize(spec); + const char *cn_node = canonicalize(node); mnt_fs_set_source(fs, cn_spec); mnt_fs_set_target(fs, cn_node); @@ -1357,8 +1357,8 @@ prepare_mtab_entry(const char *spec, const char *node, const char *type, rc = mnt_update_set_fs(mtab_update, flags, NULL, fs); if (spec != cn_spec) - free(cn_spec); - free(cn_node); + my_free(cn_spec); + my_free(cn_node); } mnt_free_fs(fs); |