gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 134/205: curl: fix callback functions to match prot


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 134/205: curl: fix callback functions to match prototype
Date: Thu, 20 Apr 2017 16:21:14 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit baaf0ba358787dcab708449399fd5eda25311b4f
Author: Hanno Böck <address@hidden>
AuthorDate: Thu Mar 30 14:59:14 2017 +0200

    curl: fix callback functions to match prototype
    
    The function tool_debug_cb doesn't match curl_debug_callback in curl.h
    (unsigned vs. signed char* for 3rd param).
    
    Bug: https://curl.haxx.se/mail/lib-2017-03/0120.html
---
 src/tool_cb_dbg.c | 5 +++--
 src/tool_cb_dbg.h | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/tool_cb_dbg.c b/src/tool_cb_dbg.c
index f4252ad88..4eeb7b210 100644
--- a/src/tool_cb_dbg.c
+++ b/src/tool_cb_dbg.c
@@ -41,7 +41,7 @@ static void dump(const char *timebuf, const char *text,
 */
 
 int tool_debug_cb(CURL *handle, curl_infotype type,
-                  unsigned char *data, size_t size,
+                  char *data, size_t size,
                   void *userdata)
 {
   struct OperationConfig *operation = userdata;
@@ -209,7 +209,8 @@ int tool_debug_cb(CURL *handle, curl_infotype type,
     break;
   }
 
-  dump(timebuf, text, output, data, size, config->tracetype, type);
+  dump(timebuf, text, output, (unsigned char *) data, size, config->tracetype,
+       type);
   return 0;
 }
 
diff --git a/src/tool_cb_dbg.h b/src/tool_cb_dbg.h
index 7ac15cf9b..c1cbc8073 100644
--- a/src/tool_cb_dbg.h
+++ b/src/tool_cb_dbg.h
@@ -28,7 +28,7 @@
 */
 
 int tool_debug_cb(CURL *handle, curl_infotype type,
-                  unsigned char *data, size_t size,
+                  char *data, size_t size,
                   void *userdata);
 
 #endif /* HEADER_CURL_TOOL_CB_DBG_H */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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