From f9956b9524ddafdb9d0cec042213eaa8229aad8c Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 29 Mar 2011 01:49:16 +0100 Subject: Bring "ex" version up to date with 0.99.18 Release: 0.99.18ex15p -- Pipework Branch Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.) --- lib/vty_cli.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/vty_cli.c') diff --git a/lib/vty_cli.c b/lib/vty_cli.c index 3b82a112..311d950c 100644 --- a/lib/vty_cli.c +++ b/lib/vty_cli.c @@ -155,7 +155,7 @@ uty_cli_new(vio_vf vf) cli->cls = qs_new(120) ; cli->clx = qs_new(120) ; - cli->cbuf = vio_fifo_init_new(NULL, 1000) ; + cli->cbuf = vio_fifo_new(1000) ; cli->olc = vio_lc_new(0 , 0, telnet_newline) ; @@ -258,12 +258,12 @@ uty_cli_close(vty_cli cli, bool final) /* If final, free the CLI object. */ if (final) { - cli->prompt_for_node = qs_reset(cli->prompt_for_node, free_it) ; - cli->cl = qs_reset(cli->cl, free_it) ; - cli->cls = qs_reset(cli->cls, free_it) ; + cli->prompt_for_node = qs_free(cli->prompt_for_node) ; + cli->cl = qs_free(cli->cl) ; + cli->cls = qs_free(cli->cls) ; - cli->cbuf = vio_fifo_reset(cli->cbuf, free_it) ; - cli->olc = vio_lc_reset(cli->olc, free_it) ; + cli->cbuf = vio_fifo_free(cli->cbuf) ; + cli->olc = vio_lc_free(cli->olc) ; XFREE(MTYPE_VTY_CLI, cli) ; /* sets cli = NULL */ } ; -- cgit v1.2.3