Commit c79009f7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use a void * for http_Read()'s buffer


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@488 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f7cfa37a
......@@ -271,7 +271,7 @@ int http_GetHdrField(struct http *hp, const char *hdr, const char *field, char *
int http_GetStatus(struct http *hp);
int http_HdrIs(struct http *hp, const char *hdr, const char *val);
int http_GetTail(struct http *hp, unsigned len, char **b, char **e);
int http_Read(struct http *hp, int fd, char *b, unsigned len);
int http_Read(struct http *hp, int fd, void *b, unsigned len);
void http_RecvHead(struct http *hp, int fd, struct event_base *eb, http_callback_f *func, void *arg);
int http_DissectRequest(struct http *sp, int fd);
int http_DissectResponse(struct http *sp, int fd);
......
......@@ -123,10 +123,11 @@ http_GetTail(struct http *hp, unsigned len, char **b, char **e)
/* Read from fd, but soak up any tail first */
int
http_Read(struct http *hp, int fd, char *b, unsigned len)
http_Read(struct http *hp, int fd, void *p, unsigned len)
{
int i;
unsigned u;
char *b = p;
u = 0;
if (hp->t < hp->v) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment