r488 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Jul 18 14:27:57 CEST 2006
Author: phk
Date: 2006-07-18 14:27:57 +0200 (Tue, 18 Jul 2006)
New Revision: 488
Modified:
trunk/varnish-cache/bin/varnishd/cache.h
trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Use a void * for http_Read()'s buffer
Modified: trunk/varnish-cache/bin/varnishd/cache.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache.h 2006-07-18 10:48:21 UTC (rev 487)
+++ trunk/varnish-cache/bin/varnishd/cache.h 2006-07-18 12:27:57 UTC (rev 488)
@@ -271,7 +271,7 @@
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);
Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c 2006-07-18 10:48:21 UTC (rev 487)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c 2006-07-18 12:27:57 UTC (rev 488)
@@ -123,10 +123,11 @@
/* 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) {
More information about the varnish-commit
mailing list