diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-07 01:35:11 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-02 17:27:05 +0400 |
commit | 94e7cd90feb6af51b7e21d5289dc0edc1ba94a99 (patch) | |
tree | 5bb3b96f954826535d5c32376684844523284b49 /lib/vty.c | |
parent | 4f5e717413b6627310a245d16f945660c9d60736 (diff) |
Revert "lib: address -Wunused-but-set-variable"
Stephen Hemminger's commits contain all the changes and
several other warning fixes.
This reverts commit 6947dbebdc91b6272f8107a6e0dd211457438606.
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1685,6 +1685,7 @@ static int vty_accept (struct thread *thread) { int vty_sock; + struct vty *vty; union sockunion su; int ret; unsigned int on; @@ -1769,7 +1770,7 @@ vty_accept (struct thread *thread) if (bufp) XFREE (MTYPE_TMP, bufp); - vty_create (vty_sock, &su); + vty = vty_create (vty_sock, &su); return 0; } |