From 8fee927850e9011b3bf46f2a8a0d54521d00a807 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Fri, 14 Oct 2011 20:59:43 +0400 Subject: 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' --- lib/vty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/vty.c') 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; } -- cgit v1.2.1