]> err.no Git - varnish/commitdiff
s/expl/reason/ to circumvent a bug in gcc 3.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 3 May 2007 08:45:33 +0000 (08:45 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 3 May 2007 08:45:33 +0000 (08:45 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1378 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache.h
varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_vrt.c

index fa46eeac89e09d2d0118bf0a97ad8099eae8d35f..13ee72a3ecc6d1e90b36d7f3aff5a23c205b9e7a 100644 (file)
@@ -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;
 
index d510dc859436cdf6f8cd9bec06815b8b7941caad..1d810743078fefa30b51a002cab8a5b086728bf4 100644 (file)
@@ -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);
 }
index 5e52f421c8cbf1dd664d29e7f6c20543dd6d4f82..11b2c5d723b56c8cbfb467a66d58afa2310fe7e3 100644 (file)
 /*--------------------------------------------------------------------*/
 
 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;
 }
 
 /*--------------------------------------------------------------------*/