From 325165d0c360d7d7c9cd343750f566cd60115026 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 13 Jan 2015 13:40:25 +0100 Subject: [PATCH] libblkid: fix compiler warnings [-Wpointer-sign] Signed-off-by: Karel Zak --- libblkid/src/superblocks/udf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libblkid/src/superblocks/udf.c b/libblkid/src/superblocks/udf.c index 2a2c9e60c9..3e9d48e4ca 100644 --- a/libblkid/src/superblocks/udf.c +++ b/libblkid/src/superblocks/udf.c @@ -92,7 +92,7 @@ static inline int gen_uuid_from_volset_id(unsigned char uuid[17], struct dstring return -1; buf[16] = 0; - len = strlen(buf); + len = strlen((char *) buf); if (len < 8) return -1; @@ -110,11 +110,11 @@ static inline int gen_uuid_from_volset_id(unsigned char uuid[17], struct dstring if (binpos < 8) { for (i = 0; i < 8; ++i) - snprintf(uuid+2*i, 3, "%02x", buf[i]); + snprintf((char *) uuid + 2 * i, 3, "%02x", buf[i]); } else if (binpos < 16) { memcpy(uuid, buf, 8); for (i = 0; i < 4; ++i) - snprintf(uuid+8+2*i, 3, "%02x", buf[8+i]); + snprintf((char *) uuid + 8 + 2 * i, 3, "%02x", buf[8+i]); } else { memcpy(uuid, buf, 16); uuid[16] = 0; -- 2.47.3