re-apply tools/coccinelle/replace.cocci

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