master - cleanup: remove 'discards 'const' qualifier' compilation warning
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a7c73154ea4f751cfd7e72162d355844993d72fa Commit: a7c73154ea4f751cfd7e72162d355844993d72fa Parent: 808a5d945e3af27c7e79093f38d2dbe8370fee39 Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Oct 9 10:05:02 2013 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Oct 9 10:05:02 2013 +0200
cleanup: remove 'discards 'const' qualifier' compilation warning
--- daemons/lvmetad/lvmetad-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmetad/lvmetad-core.c +1 -1
@@ -796,7 +796,7 @@ static response pv_gone(lvmetad_state *s, request r) pvmeta =dm_hash_lookup (s->pvid_to_pvmeta, pvid); pvid_old =dm_hash_lookup_binary (s->device_to_pvid, &device,sizeof (device)); -const char *vgid =dm_strdup (dm_hash_lookup (s->pvid_to_vgid, pvid)); +char *vgid =dm_strdup (dm_hash_lookup (s->pvid_to_vgid, pvid));if (!vgid) {unlock_pvid_to_pvmeta (s);