diff options
author | Karel Zak | 2015-01-13 13:40:25 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-13 13:40:25 +0100 |
commit | 325165d0c360d7d7c9cd343750f566cd60115026 (patch) | |
tree | a4e66450f2b525e224d7404563ba176eeb62e6e1 /libblkid/src/superblocks/udf.c | |
parent | libsmartcols: (docs) improve section descriptions (diff) | |
download | kernel-qcow2-util-linux-325165d0c360d7d7c9cd343750f566cd60115026.tar.gz kernel-qcow2-util-linux-325165d0c360d7d7c9cd343750f566cd60115026.tar.xz kernel-qcow2-util-linux-325165d0c360d7d7c9cd343750f566cd60115026.zip |
libblkid: fix compiler warnings [-Wpointer-sign]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/superblocks/udf.c')
-rw-r--r-- | libblkid/src/superblocks/udf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libblkid/src/superblocks/udf.c b/libblkid/src/superblocks/udf.c index 2a2c9e60c..3e9d48e4c 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; |