From 656a4b6e72d078f0bea65e8efc5cfb1a3fd96b40 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Feb 2012 21:49:15 +0900 Subject: [PATCH] Fixed compiler warning --- lib/spdylay_npn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spdylay_npn.c b/lib/spdylay_npn.c index 5171c4cd..971b1f2f 100644 --- a/lib/spdylay_npn.c +++ b/lib/spdylay_npn.c @@ -36,12 +36,12 @@ int spdylay_select_next_protocol(unsigned char **out, unsigned char *outlen, *outlen = 6; for(; i < inlen; i += in[i]+1) { 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]; return 1; } else if(in[i] == 8 && memcmp(&in[i+1], "http/1.1", in[i]) == 0) { http_selected = 1; - *out = &in[i+1]; + *out = (unsigned char*)&in[i+1]; *outlen = in[i]; /* Go through to the next iteration, because "spdy/2" may be there */