summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-10-14 20:59:43 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-11-21 18:25:31 +0400
commit8fee927850e9011b3bf46f2a8a0d54521d00a807 (patch)
treea436d5eb3b7e8566f4f6801daededb4a82cbfaec /lib/vty.c
parentbb6ef3e270f9ae53ac46461962500cf94ecdff08 (diff)
lib: address -Wunused-but-set-variable
* if.c * if_dump(): 'node', 'c' * distribute.c * distribute_list_all(): 'dist' * distribute_list(): 'dist' * districute_list_prefix_all(): 'dist' * if_rmap.c * if_rmap(): 'if_rmap' * vty.c * vty_accept(): 'vty'
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index e403159b..4fed2711 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1685,7 +1685,6 @@ static int
vty_accept (struct thread *thread)
{
int vty_sock;
- struct vty *vty;
union sockunion su;
int ret;
unsigned int on;
@@ -1770,7 +1769,7 @@ vty_accept (struct thread *thread)
if (bufp)
XFREE (MTYPE_TMP, bufp);
- vty = vty_create (vty_sock, &su);
+ vty_create (vty_sock, &su);
return 0;
}