[PATCH] kpartx compilation fix

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

 



Hi Christophe,

this is a small compile fix for dasd.c; a pointer to unsigned char
should be of type unsigned char ...

Cheers,

Hannes
-- 
Dr. Hannes Reinecke			hare@xxxxxxx
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
[kpartx] compilation fixes for dasd.c

If a pointer points to an unsigned char it should be of the correct
type.

Signed-off-by: Hannes Reinecke <hare@xxxxxxx>

diff --git a/kpartx/dasd.c b/kpartx/dasd.c
--- a/kpartx/dasd.c
+++ b/kpartx/dasd.c
@@ -52,7 +52,7 @@ read_dasd_pt(int fd, struct slice all, s
 	struct hd_geometry geo;
 	char type[5] = {0,};
 	char name[7] = {0,};
-	char *label_raw;
+	unsigned char *label_raw;
 	volume_label_t vlabel;
 	unsigned char *data = NULL;
 	unsigned int blk;
--

dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux