summaryrefslogtreecommitdiffstats
path: root/nest/cli.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-11-17 13:00:21 +0100
committerMartin Mares <mj@ucw.cz>1999-11-17 13:00:21 +0100
commitffb59d243a350ed525850e864b38af0ecb0ffea5 (patch)
treec3fe6231d5cd814afc901bcf992c0967014e09fc /nest/cli.c
parentea9bb932a31e5df14e3a1a5f580e62b6aedc0247 (diff)
downloadbird-ffb59d243a350ed525850e864b38af0ecb0ffea5.tar
bird-ffb59d243a350ed525850e864b38af0ecb0ffea5.zip
Command line interface now works.
Diffstat (limited to 'nest/cli.c')
-rw-r--r--nest/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nest/cli.c b/nest/cli.c
index 41907b3..4ef0f83 100644
--- a/nest/cli.c
+++ b/nest/cli.c
@@ -171,6 +171,7 @@ cli_new(void *priv)
c->event->data = c;
c->tx_buf = c->tx_pos = c->tx_write = NULL;
c->cont = cli_hello;
+ c->cleanup = NULL;
c->last_reply = 0;
c->parser_pool = lp_new(c->pool, 4096);
ev_schedule(c->event);
@@ -194,6 +195,8 @@ cli_written(cli *c)
void
cli_free(cli *c)
{
+ if (c->cleanup)
+ c->cleanup(c);
rfree(c->pool);
}