Skip to contentSkip to conversation

master - format-text: Fix a warning.

PATCH Petr Rockai 1 participant 1 message Feb 28, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=fb003cdfd5eee1d67887cd2136630cc36bba2cbf
Commit:        fb003cdfd5eee1d67887cd2136630cc36bba2cbf
Parent:        3e5bec37e9cec455f20656858ba510b69010676d
Author:        Petr Rockai <[email protected]>
AuthorDate:    Fri Feb 28 16:23:16 2014 +0100
Committer:     Petr Rockai <[email protected]>
CommitterDate: Fri Feb 28 16:23:16 2014 +0100

format-text: Fix a warning.

---
 lib/format_text/format-text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/format_text/format-text.c +1 -1
index e0b2786..29df5f1 100644
@@ -1684,7 +1684,7 @@ static int _mda_export_text_raw(struct metadata_area *mda,
 	struct mda_context *mdc = (struct mda_context *) mda->metadata_locn;
 	char mdah[MDA_HEADER_SIZE]; /* temporary */
 
-	if (!mdc || !_raw_read_mda_header(mdah, &mdc->area))
+	if (!mdc || !_raw_read_mda_header((struct mda_header *)mdah, &mdc->area))
 		return 1; /* pretend the MDA does not exist */
 
 	return config_make_nodes(cft, parent, NULL,