Commit fe9d181a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Align the iovec pointer

parent ac859374
......@@ -80,9 +80,10 @@ WRW_Reserve(struct worker *wrk, int *fd)
memset(wrw, 0, sizeof *wrw);
wrw->magic = WRW_MAGIC;
u = WS_Reserve(wrk->aws, 0);
u = PRNDDN(u);
u /= sizeof(struct iovec);
AN(u);
wrw->iov = (void*)wrk->aws->f;
wrw->iov = (void*)PRNDUP(wrk->aws->f);
wrw->siov = u;
wrw->ciov = u;
wrw->werr = 0;
......
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