]> err.no Git - varnish/commitdiff
Use a void * for http_Read()'s buffer
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 12:27:57 +0000 (12:27 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Jul 2006 12:27:57 +0000 (12:27 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@488 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_http.c

index 8452c7efdc8a704ae438aa6c064e49f287b5f621..433c6423af34d0e1a403953cc46128d3448daa69 100644 (file)
@@ -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);
index 3b4598aa9307dc033555e6948cc3ec947ff5e0de..9c262aa99181a8b25fbd75fc99aedc2ca5e66d04 100644 (file)
@@ -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) {