[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 49/254: getpart: use correct variable type
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 49/254: getpart: use correct variable type |
Date: |
Sat, 17 Jun 2017 16:51:21 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit 0912a5c760dd9b85692e121313a04797b52d4ab2
Author: Marcel Raad <address@hidden>
AuthorDate: Mon May 1 13:17:57 2017 +0200
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]
---
tests/server/getpart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/server/getpart.c b/tests/server/getpart.c
index 25758bd4e..bb8351bc3 100644
--- a/tests/server/getpart.c
+++ b/tests/server/getpart.c
@@ -190,7 +190,7 @@ static int appenddata(char **dst_buf, /* dest buffer */
static int decodedata(char **buf, /* dest buffer */
size_t *len) /* dest buffer data length */
{
- int error = 0;
+ CURLcode error = CURLE_OK;
unsigned char *buf64 = NULL;
size_t src_len = 0;
@@ -198,7 +198,7 @@ static int decodedata(char **buf, /* dest buffer */
return GPE_OK;
/* base64 decode the given buffer */
- error = (int) Curl_base64_decode(*buf, &buf64, &src_len);
+ error = Curl_base64_decode(*buf, &buf64, &src_len);
if(error)
return GPE_OUT_OF_MEMORY;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] annotated tag gnurl-7.54.1 created (now 63a6b023e), gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 01/254: src/Makefile.am: avoid explicit $<, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 05/254: tests: remove the html and PDF versions from the tarball, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 04/254: openssl: fix memory leak in servercert, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 03/254: Revert "src/Makefile.am: avoid explicit $<", gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 27/254: examples: ftpuploadfrommem.c, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 02/254: bump: start working on next release, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 28/254: url: declare get_protocol_family() static, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 62/254: transfer: fix minor buffer_size mistake, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 40/254: curl_rtmp: fix missing-variable-declarations warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 49/254: getpart: use correct variable type,
gnunet <=
- [GNUnet-SVN] [gnurl] 13/254: llist: fix a comment after cbae73e1dd9, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 11/254: multi: clarify condition in curl_multi_wait, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 08/254: llist: no longer uses malloc, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 66/254: krb5: use private buffer for temp string, not receive buffer, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 22/254: curl: set a 100K buffer size by default, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 34/254: http-proxy: removed unused argument in CURL_DISABLE_PROXY case, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 06/254: mbedtls: enable NTLM (& SMB) even if MD4 support is unavailable, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 20/254: configure: stop prepending to LDFLAGS, CPPFLAGS, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 10/254: lib: fix maybe-uninitialized warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 14/254: configure: fix the -ldl check for openssl, add -lpthread check, gnunet, 2017/06/17