Commit 47e82920 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Extend the type of argument and return value of V1L_Write

This allows adding up to ssize_t chunks
parent 7f484581
......@@ -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);
......
......@@ -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;
......
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