Commit 6c2baa91 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Nitpicking style etc.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5373 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 6fe390f8
......@@ -1049,6 +1049,8 @@ cnt_recv(struct sess *sp)
sp->disable_esi = 0;
sp->pass = 0;
sp->hash_always_miss = 0;
sp->hash_ignore_busy = 0;
sp->client_identity = NULL;
VCL_recv_method(sp);
......
......@@ -709,10 +709,12 @@ void
VRT_l_req_esi(struct sess *sp, unsigned process_esi)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
/* only allow you to turn of esi in the main request
else everything gets confused */
/*
* Only allow you to turn of esi in the main request
* else everything gets confused
*/
if(sp->esis == 0)
sp->disable_esi = !process_esi;
sp->disable_esi = !process_esi;
}
unsigned
......@@ -781,15 +783,17 @@ VRT_r_req_xid(struct sess *sp)
void
VRT_l_req_hash_ignore_busy(struct sess *sp, unsigned ignore_busy)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
sp->hash_ignore_busy = !!ignore_busy;
sp->hash_ignore_busy = ignore_busy;
}
unsigned
VRT_r_req_hash_ignore_busy(struct sess *sp)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
return sp->hash_ignore_busy;
return (sp->hash_ignore_busy);
}
/*--------------------------------------------------------------------
......@@ -799,15 +803,17 @@ VRT_r_req_hash_ignore_busy(struct sess *sp)
void
VRT_l_req_hash_always_miss(struct sess *sp, unsigned always_miss)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
sp->hash_always_miss = !!always_miss;
sp->hash_always_miss = always_miss;
}
unsigned
VRT_r_req_hash_always_miss(struct sess *sp)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
return sp->hash_always_miss;
return (sp->hash_always_miss);
}
/*--------------------------------------------------------------------*/
......
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