diff options
| author | Karel Zak <kzak@redhat.com> | 2011-01-10 14:41:42 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2011-01-10 14:41:42 +0100 |
| commit | c909751e85b8102beba62cad41978437530712ff (patch) | |
| tree | ae3d15ba03912e0b3b556ff9cdefa41a108ea9e3 /mount | |
| parent | 97073441e6ec6320580cda4d315a0fec506568eb (diff) | |
| download | util-linux-old-c909751e85b8102beba62cad41978437530712ff.tar.gz | |
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 ae137f0b..ae3c6d25 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); |
