re-apply tools/coccinelle/replace.cocci

parent 008e2eaf
......@@ -111,13 +111,11 @@ macro_def_int(const char *name, const char *fmt, va_list ap)
ALLOC_OBJ(m, MACRO_MAGIC);
AN(m);
REPLACE(m->name, name);
AN(m->name);
VTAILQ_INSERT_TAIL(&macro_list, m, list);
}
AN(m);
vbprintf(buf, fmt, ap);
REPLACE(m->val, buf);
AN(m->val);
return (m);
}
......
......@@ -807,7 +807,6 @@ http_tx_parse_args(char * const *av, struct vtclog *vl, struct http *hp,
assert(body == nullbody);
REPLACE(body, av[1]);
AN(body);
av++;
bodylen = strlen(body);
for (b = body; *b != '\0'; b++) {
......
......@@ -1548,7 +1548,6 @@ cmd_tx11obj(CMD_ARGS)
if (AV_IS("-body")) {
AZ(body);
REPLACE(body, av[1]);
AN(body);
bodylen = strlen(body);
f.flags &= ~END_STREAM;
av++;
......@@ -2580,7 +2579,6 @@ stream_new(const char *name, struct http *h)
AN(s);
AZ(pthread_cond_init(&s->cond, NULL));
REPLACE(s->name, name);
AN(s->name);
VTAILQ_INIT(&s->fq);
s->ws = h->iws;
s->vl = vtc_logopen("%s.%s", h->sess->name, name);
......
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