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

Various nitpicking

parent f4fcd0d5
......@@ -174,6 +174,7 @@ process_thread(void *priv)
CAST_OBJ_NOTNULL(p, priv, PROCESS_MAGIC);
if (p->fd_from > 0) {
vlu = VLU_New(p, process_vlu_func, 1024);
AN(vlu);
while (!VLU_Fd(p->fd_from, vlu))
continue;
VLU_Destroy(vlu);
......
......@@ -432,12 +432,13 @@ VCLS_AddFd(struct VCLS *cs, int fdi, int fdo, cls_cb_f *closefunc, void *priv)
cfd->cli = &cfd->clis;
cfd->cli->magic = CLI_MAGIC;
cfd->cli->vlu = VLU_New(cfd, cls_vlu, *cs->maxlen);
AN(cfd->cli->vlu);
cfd->cli->sb = VSB_new_auto();
AN(cfd->cli->sb);
cfd->cli->limit = cs->limit;
cfd->cli->priv = priv;
cfd->closefunc = closefunc;
cfd->priv = priv;
AN(cfd->cli->sb);
VTAILQ_INSERT_TAIL(&cs->fds, cfd, list);
cs->nfd++;
return (cfd->cli);
......
......@@ -127,6 +127,7 @@ VSUB_run(struct vsb *sb, vsub_func_f *func, void *priv, const char *name,
}
closefd(&p[1]);
vlu = VLU_New(&sp, vsub_vlu, 0);
AN(vlu);
while (!VLU_Fd(p[0], vlu))
continue;
closefd(&p[0]);
......
......@@ -712,9 +712,7 @@ vcc_Eval_Func(struct vcc *tl, const char *spec,
const char *extra, const struct symbol *sym)
{
struct expr *e = NULL;
struct token *t1;
t1 = tl->t;
vcc_func(tl, &e, spec, extra, sym);
ERRCHK(tl);
vcc_expr_fmt(tl->fb, tl->indent, e);
......
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