Fixed compiler warning
This commit is contained in:
parent
887850e2f0
commit
656a4b6e72
|
@ -36,12 +36,12 @@ int spdylay_select_next_protocol(unsigned char **out, unsigned char *outlen,
|
||||||
*outlen = 6;
|
*outlen = 6;
|
||||||
for(; i < inlen; i += in[i]+1) {
|
for(; i < inlen; i += in[i]+1) {
|
||||||
if(in[i] == 6 && memcmp(&in[i+1], "spdy/2", in[i]) == 0) {
|
if(in[i] == 6 && memcmp(&in[i+1], "spdy/2", in[i]) == 0) {
|
||||||
*out = &in[i+1];
|
*out = (unsigned char*)&in[i+1];
|
||||||
*outlen = in[i];
|
*outlen = in[i];
|
||||||
return 1;
|
return 1;
|
||||||
} else if(in[i] == 8 && memcmp(&in[i+1], "http/1.1", in[i]) == 0) {
|
} else if(in[i] == 8 && memcmp(&in[i+1], "http/1.1", in[i]) == 0) {
|
||||||
http_selected = 1;
|
http_selected = 1;
|
||||||
*out = &in[i+1];
|
*out = (unsigned char*)&in[i+1];
|
||||||
*outlen = in[i];
|
*outlen = in[i];
|
||||||
/* Go through to the next iteration, because "spdy/2" may be
|
/* Go through to the next iteration, because "spdy/2" may be
|
||||||
there */
|
there */
|
||||||
|
|
Loading…
Reference in New Issue