From 810847248ae90140ee6f3e568add80aef88c3def Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 5 Oct 2011 21:59:33 +0200 Subject: [PATCH] Fix compiler warning. --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 022ac257..cf462212 100644 --- a/src/utils.c +++ b/src/utils.c @@ -66,7 +66,7 @@ int bin2hex(const char *src, char *dst, int length) { int b64decode(const char *src, char *dst, int length) { int i; uint32_t triplet = 0; - unsigned char *udst = dst; + unsigned char *udst = (unsigned char *)dst; for(i = 0; i < length / 3 * 4 && src[i]; i++) { triplet |= charb64decode(src[i]) << (6 * (i & 3)); @@ -92,7 +92,7 @@ int b64decode(const char *src, char *dst, int length) { int b64encode(const char *src, char *dst, int length) { uint32_t triplet; - const unsigned char *usrc = src; + const unsigned char *usrc = (unsigned char *)src; int si = length / 3 * 3; int di = length / 3 * 4; -- 2.39.5