mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
gtls: fix compiler warnings
This commit is contained in:
parent
5a1614cecd
commit
d9973eaeb8
@ -636,14 +636,14 @@ gtls_connect_step1(struct connectdata *conn,
|
|||||||
|
|
||||||
#ifdef USE_NGHTTP2
|
#ifdef USE_NGHTTP2
|
||||||
if(data->set.httpversion == CURL_HTTP_VERSION_2_0) {
|
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;
|
protocols[cur].size = NGHTTP2_PROTO_VERSION_ID_LEN;
|
||||||
cur++;
|
cur++;
|
||||||
infof(data, "ALPN, offering %s\n", NGHTTP2_PROTO_VERSION_ID);
|
infof(data, "ALPN, offering %s\n", NGHTTP2_PROTO_VERSION_ID);
|
||||||
}
|
}
|
||||||
#endif
|
#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;
|
protocols[cur].size = ALPN_HTTP_1_1_LENGTH;
|
||||||
cur++;
|
cur++;
|
||||||
infof(data, "ALPN, offering %s\n", ALPN_HTTP_1_1);
|
infof(data, "ALPN, offering %s\n", ALPN_HTTP_1_1);
|
||||||
|
Loading…
Reference in New Issue
Block a user