[master] 47e8292 Extend the type of argument and return value of V1L_Write
Martin Blix Grydeland
martin at varnish-software.com
Wed Dec 10 11:14:09 CET 2014
commit 47e8292088626a59015152c23b3bc45acd579b5b
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Dec 9 15:58:24 2014 +0100
Extend the type of argument and return value of V1L_Write
This allows adding up to ssize_t chunks
diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index 5ad4519..1db9644 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -964,7 +964,7 @@ void V1L_EndChunk(const struct worker *w);
void V1L_Reserve(struct worker *, struct ws *, int *fd, struct vsl_log *, double t0);
unsigned V1L_Flush(const struct worker *w);
unsigned V1L_FlushRelease(struct worker *w);
-unsigned V1L_Write(const struct worker *w, const void *ptr, int len);
+size_t V1L_Write(const struct worker *w, const void *ptr, ssize_t len);
/* cache_range.c [VRG] */
void VRG_dorange(struct req *req, struct busyobj *bo, const char *r);
diff --git a/bin/varnishd/http1/cache_http1_line.c b/bin/varnishd/http1/cache_http1_line.c
index 271a369..5601ddc 100644
--- a/bin/varnishd/http1/cache_http1_line.c
+++ b/bin/varnishd/http1/cache_http1_line.c
@@ -221,8 +221,8 @@ V1L_Flush(const struct worker *wrk)
return (v1l->werr);
}
-unsigned
-V1L_Write(const struct worker *wrk, const void *ptr, int len)
+size_t
+V1L_Write(const struct worker *wrk, const void *ptr, ssize_t len)
{
struct v1l *v1l;
More information about the varnish-commit
mailing list