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

Use WRONG instead of INCOMPL



git-svn-id: http://www.varnish-cache.org/svn/trunk@3059 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 6413acfb
...@@ -487,7 +487,7 @@ cnt_first(struct sess *sp) ...@@ -487,7 +487,7 @@ cnt_first(struct sess *sp)
sp->step = STP_DONE; sp->step = STP_DONE;
break; break;
default: default:
INCOMPL(); WRONG("Illegal return from HTC_Rx");
} }
return (0); return (0);
} }
...@@ -884,7 +884,8 @@ cnt_recv(struct sess *sp) ...@@ -884,7 +884,8 @@ cnt_recv(struct sess *sp)
sp->step = STP_ERROR; sp->step = STP_ERROR;
return (0); return (0);
default: default:
INCOMPL(); WRONG("Illegal action in vcl_recv{}");
return (0);
} }
} }
...@@ -1008,7 +1009,8 @@ CNT_Session(struct sess *sp) ...@@ -1008,7 +1009,8 @@ CNT_Session(struct sess *sp)
break; break;
#include "steps.h" #include "steps.h"
#undef STEP #undef STEP
default: INCOMPL(); default:
WRONG("State engine misfire");
} }
CHECK_OBJ_ORNULL(w->nobj, OBJECT_MAGIC); CHECK_OBJ_ORNULL(w->nobj, OBJECT_MAGIC);
CHECK_OBJ_ORNULL(w->nobjhead, OBJHEAD_MAGIC); CHECK_OBJ_ORNULL(w->nobjhead, OBJHEAD_MAGIC);
......
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