aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/gtls.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-03-10 15:16:59 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-03-10 15:16:59 +0100
commitd9973eaeb8942cdffb790d4e523f5b809d1a1014 (patch)
treed52f028090b266ba4e77f8b50da10fe9ccdaca3c /lib/vtls/gtls.c
parent5a1614cecdd57cab8b4ae3e9bc19dfff5ba77e80 (diff)
gtls: fix compiler warnings
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r--lib/vtls/gtls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index c7925404e..d956fada8 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -636,14 +636,14 @@ gtls_connect_step1(struct connectdata *conn,
#ifdef USE_NGHTTP2
if(data->set.httpversion == CURL_HTTP_VERSION_2_0) {
- protocols[cur].data = NGHTTP2_PROTO_VERSION_ID;
+ protocols[cur].data = (unsigned char *)NGHTTP2_PROTO_VERSION_ID;
protocols[cur].size = NGHTTP2_PROTO_VERSION_ID_LEN;
cur++;
infof(data, "ALPN, offering %s\n", NGHTTP2_PROTO_VERSION_ID);
}
#endif
- protocols[cur].data = ALPN_HTTP_1_1;
+ protocols[cur].data = (unsigned char *)ALPN_HTTP_1_1;
protocols[cur].size = ALPN_HTTP_1_1_LENGTH;
cur++;
infof(data, "ALPN, offering %s\n", ALPN_HTTP_1_1);