diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-11-03 12:25:07 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-11-03 12:25:07 +0000 |
commit | 5b315a273e10129b82c20bfebf951875ad5fe961 (patch) | |
tree | 5f02217a53e249273f776063b1e22a1dc637033c /tests/server | |
parent | 5094bb53f4a02726fb2aa93d0614e20430004be5 (diff) |
base64: Fixed compilation warnings when using Curl_base64_decode()
curl_sasl.c:294: warning: dereferencing type-punned pointer will break
strict-aliasing rules
getpart.c:201: warning: dereferencing type-punned pointer will break
strict-aliasing rules
Diffstat (limited to 'tests/server')
-rw-r--r-- | tests/server/getpart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/getpart.c b/tests/server/getpart.c index 654587358..fb86596e7 100644 --- a/tests/server/getpart.c +++ b/tests/server/getpart.c @@ -191,14 +191,14 @@ static int decodedata(char **buf, /* dest buffer */ size_t *len) /* dest buffer data length */ { int error = 0; - char *buf64 = NULL; + unsigned char *buf64 = NULL; size_t src_len = 0; if(!*len) return GPE_OK; /* base64 decode the given buffer */ - error = (int) Curl_base64_decode(*buf, (unsigned char **) &buf64, &src_len); + error = (int) Curl_base64_decode(*buf, &buf64, &src_len); if(error) return GPE_OUT_OF_MEMORY; |