]> err.no Git - varnish/commitdiff
Use WRONG instead of INCOMPL
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 1 Aug 2008 11:24:48 +0000 (11:24 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 1 Aug 2008 11:24:48 +0000 (11:24 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3059 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 573af817c16c7ad39e6d9a7af56baa5768d1c9df..8b451ee06b9b492fbfba622c0b3213f5b4db8999 100644 (file)
@@ -487,7 +487,7 @@ cnt_first(struct sess *sp)
                sp->step = STP_DONE;
                break;
        default:
-               INCOMPL();
+               WRONG("Illegal return from HTC_Rx");
        }
        return (0);
 }
@@ -884,7 +884,8 @@ cnt_recv(struct sess *sp)
                sp->step = STP_ERROR;
                return (0);
        default:
-               INCOMPL();
+               WRONG("Illegal action in vcl_recv{}");
+               return (0);
        }
 }
 
@@ -1008,7 +1009,8 @@ CNT_Session(struct sess *sp)
                        break;
 #include "steps.h"
 #undef STEP
-               default:        INCOMPL();
+               default:
+                       WRONG("State engine misfire");
                }
                CHECK_OBJ_ORNULL(w->nobj, OBJECT_MAGIC);
                CHECK_OBJ_ORNULL(w->nobjhead, OBJHEAD_MAGIC);