From: phk Date: Tue, 18 Jul 2006 12:27:57 +0000 (+0000) Subject: Use a void * for http_Read()'s buffer X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e070445c807fcea36a6b2e17efb06ce70a01f78a;p=varnish Use a void * for http_Read()'s buffer git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@488 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache.h b/varnish-cache/bin/varnishd/cache.h index 8452c7ef..433c6423 100644 --- a/varnish-cache/bin/varnishd/cache.h +++ b/varnish-cache/bin/varnishd/cache.h @@ -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); diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index 3b4598aa..9c262aa9 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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) {