gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]