[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] master - lvmetad: fix minor gcc warning



Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a92fae079be1486302343443a813df9ec5bfd2ff
Commit:        a92fae079be1486302343443a813df9ec5bfd2ff
Parent:        445c0a5585e196e29cfaef1447e3729ae925751f
Author:        Zdenek Kabelac <zkabelac redhat com>
AuthorDate:    Sun Mar 2 22:26:21 2014 +0100
Committer:     Zdenek Kabelac <zkabelac redhat com>
CommitterDate: Mon Mar 3 11:23:32 2014 +0100

lvmetad: fix minor gcc warning

Cast to pass in non-const pointer
---
 daemons/lvmetad/lvmetad-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c
index f1fb749..2bbf9e4 100644
--- a/daemons/lvmetad/lvmetad-core.c
+++ b/daemons/lvmetad/lvmetad-core.c
@@ -961,7 +961,7 @@ out_of_mem:
 		lock_vg(s, vgid_old);
 		vg_remove_if_missing(s, vgid_old, 1);
 		unlock_vg(s, vgid_old);
-		dm_free(vgid_old);
+		dm_free((char*)vgid_old);
 	}
 
 	return daemon_reply_simple("OK",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]