]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix vty.c and smux.c static variable clash
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 13 Oct 2015 18:37:15 +0000 (11:37 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 13 Oct 2015 18:37:15 +0000 (11:37 -0700)
commit79159516d6c685949e5d6a3269f718d730a338cf
tree13fd8e90ea89267044da49fdbbe2db45a56fc970
parent1eab5b17bc6462ea9381a0fd32c0f0317fe51bd3
lib: fix vty.c and smux.c static variable clash

Both vty.c and smux.c declare:
static struct thread_master *master

This is not a good thing because they are both linked into
the same library.  If you want to pass different struct thread_master
pointers into smux.c and vty.c you will probably not get the result
you were looking for

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/smux.c
lib/vty.c