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

Whitespace cleanup



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4689 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2a3c2df3
......@@ -1051,7 +1051,7 @@ cnt_recv(struct sess *sp)
assert(sp->handling == VCL_RET_HASH);
SHA256_Final(sp->digest, sp->wrk->sha256ctx);
if (!strcmp(sp->http->hd[HTTP_HDR_REQ].b, "HEAD"))
if (!strcmp(sp->http->hd[HTTP_HDR_REQ].b, "HEAD"))
sp->wantbody = 0;
else
sp->wantbody = 1;
......
......@@ -207,7 +207,7 @@ RES_BuildHttp(struct sess *sp)
} else if (params->http_range_support)
http_SetHeader(sp->wrk, sp->fd, sp->wrk->resp,
"Accept-Ranges: bytes");
TIM_format(TIM_real(), time_str);
http_PrintfHeader(sp->wrk, sp->fd, sp->wrk->resp, "Date: %s", time_str);
......@@ -248,7 +248,7 @@ RES_WriteObj(struct sess *sp)
if (sp->esis == 0)
/* no headers for interior ESI includes */
sp->acct_req.hdrbytes +=
sp->acct_req.hdrbytes +=
http_Write(sp->wrk, sp->wrk->resp, 1);
if (WRW_FlushRelease(sp->wrk)) {
......@@ -279,7 +279,7 @@ RES_WriteObj(struct sess *sp)
sp->http->protover >= 1.1 &&
sp->obj->len > 0) {
/*
* Interior ESI includes (which are not themselves ESI
* Interior ESI includes (which are not themselves ESI
* objects) use chunked encoding (here) or EOF (nothing)
*/
assert(sp->wantbody);
......@@ -304,7 +304,7 @@ RES_WriteObj(struct sess *sp)
off = 0;
if (ptr + len <= low) {
/* This segment is too early */
ptr += len;
ptr += len;
continue;
}
if (ptr < low) {
......
......@@ -101,7 +101,7 @@ static struct vlu *vlu;
/*--------------------------------------------------------------------
* Track the highest file descriptor the parent knows is being used.
*
* This allows the child process to clean/close only a small fraction
* This allows the child process to clean/close only a small fraction
* of the possible file descriptors after exec(2).
*
* This is likely to a bit on the low side, as libc and other libraries
......
......@@ -141,7 +141,7 @@ STV_NewObject(struct sess *sp, unsigned l, double ttl, unsigned nhttp)
o = (void *)st->ptr; /* XXX: align ? */
l = PRNDDN(st->space - (sizeof *o + lh));
STV_InitObj(sp, o, l, lh, nhttp);
o->objstore = st;
......
......@@ -194,7 +194,7 @@ binheap_new(void *priv, binheap_cmp_t *cmp_f, binheap_update_t *update_f)
;
bh->page_shift = u;
assert(bh->page_size <= (sizeof(**bh->array) * ROW_WIDTH));
bh->cmp = cmp_f;
bh->update = update_f;
bh->next = ROOT_IDX;
......
......@@ -308,7 +308,7 @@ vcc_acl_entry(struct tokenlist *tl)
ae->mask = vcc_UintVal(tl);
}
if (ae->para)
if (ae->para)
SkipToken(tl, ')');
if (!vcc_acl_try_netnotation(tl, ae)) {
......
......@@ -131,7 +131,7 @@ vcc_VarVal(struct tokenlist *tl, const struct var *vp, const struct token *vt)
Fb(tl, 0, "%g", d);
} else if (vp->fmt == FLOAT) {
Fb(tl, 0, "%g", vcc_DoubleVal(tl));
} else if (vp->fmt == INT) {
} else if (vp->fmt == INT) {
Fb(tl, 0, "%u", vcc_UintVal(tl));
} else {
AN(vt);
......
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