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

Introduce a local "req" parameter in the cnt_* states, and pass wrk and req

in as paramters to shave a few source lines
parent 110b8e71
...@@ -127,7 +127,7 @@ typedef struct { ...@@ -127,7 +127,7 @@ typedef struct {
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
enum step { enum step {
#define STEP(l, u) STP_##u, #define STEP(l, u, arg) STP_##u,
#include "tbl/steps.h" #include "tbl/steps.h"
#undef STEP #undef STEP
}; };
......
This diff is collapsed.
...@@ -238,7 +238,7 @@ pan_sess(const struct sess *sp) ...@@ -238,7 +238,7 @@ pan_sess(const struct sess *sp)
sp->addr ? sp->addr : "?.?.?.?", sp->addr ? sp->addr : "?.?.?.?",
sp->port ? sp->port : "?"); sp->port ? sp->port : "?");
switch (sp->step) { switch (sp->step) {
#define STEP(l, u) case STP_##u: stp = "STP_" #u; break; #define STEP(l, u, arg) case STP_##u: stp = "STP_" #u; break;
#include "tbl/steps.h" #include "tbl/steps.h"
#undef STEP #undef STEP
default: stp = NULL; default: stp = NULL;
......
...@@ -29,20 +29,20 @@ ...@@ -29,20 +29,20 @@
*/ */
/*lint -save -e525 -e539 */ /*lint -save -e525 -e539 */
STEP(wait, WAIT) STEP(wait, WAIT, (sp, sp->wrk, sp->req))
STEP(first, FIRST) STEP(first, FIRST, (sp, sp->wrk))
STEP(recv, RECV) STEP(recv, RECV, (sp, sp->wrk, sp->req))
STEP(start, START) STEP(start, START, (sp, sp->wrk, sp->req))
STEP(pipe, PIPE) STEP(pipe, PIPE, (sp, sp->wrk, sp->req))
STEP(pass, PASS) STEP(pass, PASS, (sp, sp->wrk, sp->req))
STEP(lookup, LOOKUP) STEP(lookup, LOOKUP, (sp, sp->wrk, sp->req))
STEP(miss, MISS) STEP(miss, MISS, (sp, sp->wrk, sp->req))
STEP(hit, HIT) STEP(hit, HIT, (sp, sp->wrk, sp->req))
STEP(fetch, FETCH) STEP(fetch, FETCH, (sp, sp->wrk, sp->req))
STEP(fetchbody, FETCHBODY) STEP(fetchbody, FETCHBODY, (sp, sp->wrk, sp->req))
STEP(streambody,STREAMBODY) STEP(streambody, STREAMBODY, (sp, sp->wrk, sp->req))
STEP(prepresp, PREPRESP) STEP(prepresp, PREPRESP, (sp, sp->wrk, sp->req))
STEP(deliver, DELIVER) STEP(deliver, DELIVER, (sp, sp->wrk, sp->req))
STEP(error, ERROR) STEP(error, ERROR, (sp, sp->wrk, sp->req))
STEP(done, DONE) STEP(done, DONE, (sp, sp->wrk, sp->req))
/*lint -restore */ /*lint -restore */
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