diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 09:38:56 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 12:44:20 +0200 | 
| commit | a5aa2bdf348391ee79bcbd9f43166f4a7dd4ed52 (patch) | |
| tree | 7e6e6b236c04fb903abe266eed0c0c854a3e621f /lib/http.h | |
| parent | 07b9826541ec429433495d237301d59a5d8bfd22 (diff) | |
http2: use the correct function pointer typedef
Fixes gcc-8 picky compiler warnings
Reported-by: Rikard Falkeborn
Bug: #2560
Closes #2568
Diffstat (limited to 'lib/http.h')
| -rw-r--r-- | lib/http.h | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/lib/http.h b/lib/http.h index a5573c738..1d373e8f4 100644 --- a/lib/http.h +++ b/lib/http.h @@ -186,9 +186,6 @@ struct HTTP {  #endif  }; -typedef int (*sending)(void); /* Curl_send */ -typedef int (*recving)(void); /* Curl_recv */ -  #ifdef USE_NGHTTP2  /* h2 settings for this connection */  struct h2settings { @@ -197,15 +194,14 @@ struct h2settings {  };  #endif -  struct http_conn {  #ifdef USE_NGHTTP2  #define H2_BINSETTINGS_LEN 80    nghttp2_session *h2;    uint8_t binsettings[H2_BINSETTINGS_LEN];    size_t  binlen; /* length of the binsettings data */ -  sending send_underlying; /* underlying send Curl_send callback */ -  recving recv_underlying; /* underlying recv Curl_recv callback */ +  Curl_send *send_underlying; /* underlying send Curl_send callback */ +  Curl_recv *recv_underlying; /* underlying recv Curl_recv callback */    char *inbuf; /* buffer to receive data from underlying socket */    size_t inbuflen; /* number of bytes filled in inbuf */    size_t nread_inbuf; /* number of bytes read from in inbuf */ | 
