Commit 3edd5f53 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

s/expl/reason/ to circumvent a bug in gcc 3.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1378 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 15940037
......@@ -275,7 +275,7 @@ struct sess {
unsigned handling;
unsigned char wantbody;
int err_code;
const char *err_expl;
const char *err_reason;
TAILQ_ENTRY(sess) list;
......
......@@ -247,9 +247,9 @@ static int
cnt_error(struct sess *sp)
{
RES_Error(sp, sp->err_code, sp->err_expl);
RES_Error(sp, sp->err_code, sp->err_reason);
sp->err_code = 0;
sp->err_expl = NULL;
sp->err_reason = NULL;
sp->step = STP_DONE;
return (0);
}
......
......@@ -47,13 +47,13 @@
/*--------------------------------------------------------------------*/
void
VRT_error(struct sess *sp, unsigned code, const char *expl)
VRT_error(struct sess *sp, unsigned code, const char *reason)
{
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
WSL(sp->wrk, SLT_Debug, 0, "VCL_error(%u, %s)", code, expl);
WSL(sp->wrk, SLT_Debug, 0, "VCL_error(%u, %s)", code, reason);
sp->err_code = code;
sp->err_expl = expl;
sp->err_reason = reason;
}
/*--------------------------------------------------------------------*/
......
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