From a5aa2bdf348391ee79bcbd9f43166f4a7dd4ed52 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 May 2018 09:38:56 +0200 Subject: http2: use the correct function pointer typedef Fixes gcc-8 picky compiler warnings Reported-by: Rikard Falkeborn Bug: #2560 Closes #2568 --- lib/http2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/http2.c') diff --git a/lib/http2.c b/lib/http2.c index 62b109293..ef93e6560 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -2141,8 +2141,8 @@ CURLcode Curl_http2_switched(struct connectdata *conn, if(result) return result; - httpc->recv_underlying = (recving)conn->recv[FIRSTSOCKET]; - httpc->send_underlying = (sending)conn->send[FIRSTSOCKET]; + httpc->recv_underlying = conn->recv[FIRSTSOCKET]; + httpc->send_underlying = conn->send[FIRSTSOCKET]; conn->recv[FIRSTSOCKET] = http2_recv; conn->send[FIRSTSOCKET] = http2_send; -- cgit v1.2.3