summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_term.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
commitf9956b9524ddafdb9d0cec042213eaa8229aad8c (patch)
treebf362c892837ef3f5a6a4d4265eb18e1b47ccf33 /lib/vty_io_term.c
parent9470cb2c32eab220f796b1438b787528272cbe84 (diff)
downloadquagga-ex15p.tar.bz2
quagga-ex15p.tar.xz
Bring "ex" version up to date with 0.99.18ex15p
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.)
Diffstat (limited to 'lib/vty_io_term.c')
-rw-r--r--lib/vty_io_term.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/vty_io_term.c b/lib/vty_io_term.c
index 2c9cb643..0a1efc72 100644
--- a/lib/vty_io_term.c
+++ b/lib/vty_io_term.c
@@ -20,7 +20,6 @@
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
-#include "zconfig.h"
#include "misc.h"
#include "vty_local.h"
@@ -579,7 +578,7 @@ uty_term_read_timeout(vio_timer timer, void* action_info)
VTY_ASSERT_LOCKED() ;
vf->vin_state = vf_timed_out ;
- keystroke_stream_set_eof(vf->cli->key_stream, true) ;
+ keystroke_stream_set_eof(vf->cli->key_stream, true) ; /* timed out */
vf->cli->paused = false ;
@@ -773,8 +772,7 @@ uty_term_write(vio_vf vf)
vty_cli cli = vf->cli ;
utw_ret_t ret ;
int did ;
- size_t have, take ;
- char* src ;
+ ulen have, take ;
VTY_ASSERT_LOCKED() ;
@@ -851,15 +849,15 @@ uty_term_write(vio_vf vf)
*/
vio_fifo_set_hold_mark(vf->obuf) ; /* released in uty_term_write_lc() */
- src = vio_fifo_get(vf->obuf, &have) ;
+ have = vio_fifo_get(vf->obuf) ;
while (1)
{
- take = vio_lc_append(cli->olc, src, have) ;
+ take = vio_lc_append(cli->olc, vio_fifo_get_ptr(vf->obuf), have) ;
if (take == 0)
break ;
- src = vio_fifo_step_get(vf->obuf, &have, take) ;
+ have = vio_fifo_step_get(vf->obuf, take) ;
if (have == 0)
break ;