Commit 181a0496 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make the object length a ssize_t

parent ae57a6bd
......@@ -432,7 +432,7 @@ struct object {
unsigned cacheable;
unsigned len;
ssize_t len;
double ttl;
double age;
......
......@@ -297,7 +297,7 @@ res_WriteDirObj(struct sess *sp, char lenbuf[20], size_t low, size_t high)
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
if (sp->wrk->res_mode & RES_CHUNKED) {
bprintf(lenbuf, "%x\r\n", sp->obj->len);
bprintf(lenbuf, "%jx\r\n", (intmax_t)sp->obj->len);
(void)WRW_Write(sp->wrk, lenbuf, -1);
}
......
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