curl-library
[Patch] vtls/polarssl.c
From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Sat, 22 Mar 2014 16:16:18 +0100
Date: Sat, 22 Mar 2014 16:16:18 +0100
The debug messages printed inside PolarSSL always seems to end with a
newline. So 'infof()' should not add one. Besides the trace 'line' should be
'const'. Patch:
--- Git-latest/lib/vtls/polarssl.c 2014-03-19 23:24:29 +0000
+++ lib/vtlspolarssl.c" 2014-03-22 16:09:41 +0000
@@ -104,7 +104,7 @@
#undef POLARSSL_DEBUG
#ifdef POLARSSL_DEBUG
-static void polarssl_debug(void *context, int level, char *line)
+static void polarssl_debug(void *context, int level, const char *line)
{
struct SessionHandle *data = NULL;
@@ -113,7 +113,8 @@
data = (struct SessionHandle *)context;
- infof(data, "%s\n", line);
+ infof(data, line);
+ (void) level;
}
#else
#endif
---- --gv ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-03-22