mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
Remove unused dont_more variable in vty_flush and add return 0 to vtysh_write.
This commit is contained in:
parent
5932020bb1
commit
976d8c734b
@ -1452,7 +1452,6 @@ static int
|
|||||||
vty_flush (struct thread *thread)
|
vty_flush (struct thread *thread)
|
||||||
{
|
{
|
||||||
int erase;
|
int erase;
|
||||||
int dont_more;
|
|
||||||
int vty_sock = THREAD_FD (thread);
|
int vty_sock = THREAD_FD (thread);
|
||||||
struct vty *vty = THREAD_ARG (thread);
|
struct vty *vty = THREAD_ARG (thread);
|
||||||
vty->t_write = NULL;
|
vty->t_write = NULL;
|
||||||
@ -1977,6 +1976,7 @@ vtysh_write (struct thread *thread)
|
|||||||
vty->t_write = NULL;
|
vty->t_write = NULL;
|
||||||
if (buffer_flush_available(vty->obuf, vty->fd))
|
if (buffer_flush_available(vty->obuf, vty->fd))
|
||||||
vty_event (VTYSH_WRITE, vty->fd, vty);
|
vty_event (VTYSH_WRITE, vty->fd, vty);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* VTYSH */
|
#endif /* VTYSH */
|
||||||
|
Loading…
Reference in New Issue
Block a user