[lvm-devel] master - cleanup: add explicit cast to proper enum type

Zdenek Kabelac zkabelac at fedoraproject.org
Tue Jul 23 12:58:56 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=e0856393c8a1c622871b07fb452fbbd7c0da537a
Commit:        e0856393c8a1c622871b07fb452fbbd7c0da537a
Parent:        9b1834f075daf0fb3f349356a31c1bfed421384a
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Tue Jul 23 10:46:07 2013 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Tue Jul 23 14:53:29 2013 +0200

cleanup: add explicit cast to proper enum type

---
 liblvm/lvm_lv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/liblvm/lvm_lv.c b/liblvm/lvm_lv.c
index 7fc2392..46399e4 100644
--- a/liblvm/lvm_lv.c
+++ b/liblvm/lvm_lv.c
@@ -443,7 +443,7 @@ lv_create_params_t lvm_lv_params_create_thin_pool(vg_t vg,
 
 	if (lvcp) {
 		lvcp->vg = vg;
-		lvcp->lvp.discards = discard;
+		lvcp->lvp.discards = (thin_discards_t) discard;
 
 		if (chunk_size)
 			lvcp->lvp.chunk_size = chunk_size;




More information about the lvm-devel mailing list