1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

getpart: use correct variable type

This fixes the following clang warning:
getpart.c:201:17: warning: cast from function call of type 'CURLcode'
to non-matching type 'int' [-Wbad-function-cast]
This commit is contained in:
Marcel Raad 2017-05-01 13:17:57 +02:00
parent 7dd89c1cdc
commit 0912a5c760
No known key found for this signature in database
GPG Key ID: B7F13D981BBF1607

View File

@ -190,7 +190,7 @@ static int appenddata(char **dst_buf, /* dest buffer */
static int decodedata(char **buf, /* dest buffer */ static int decodedata(char **buf, /* dest buffer */
size_t *len) /* dest buffer data length */ size_t *len) /* dest buffer data length */
{ {
int error = 0; CURLcode error = CURLE_OK;
unsigned char *buf64 = NULL; unsigned char *buf64 = NULL;
size_t src_len = 0; size_t src_len = 0;
@ -198,7 +198,7 @@ static int decodedata(char **buf, /* dest buffer */
return GPE_OK; return GPE_OK;
/* base64 decode the given buffer */ /* base64 decode the given buffer */
error = (int) Curl_base64_decode(*buf, &buf64, &src_len); error = Curl_base64_decode(*buf, &buf64, &src_len);
if(error) if(error)
return GPE_OUT_OF_MEMORY; return GPE_OUT_OF_MEMORY;