]> git.puffer.fish Git - mirror/frr.git/commit
lib: Fix some more compiler warnings
authorDonald Sharp <sharpd@cumulusnetwroks.com>
Sun, 15 May 2016 17:33:15 +0000 (13:33 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 May 2016 13:34:20 +0000 (09:34 -0400)
commit7bf5d99223b40e71629ec164d9a397538378a3bd
treeb4783e3eb90d9cbd6c855d927ce16c7c59154c4b
parentb0689168486e8446e681d984e2230da23b942fca
lib: Fix some more compiler warnings

Three different changes:
a) in nexthop.c we have an actual bug, we've rearranged
the enumerated types and the list of enums has changed, we
were displaying the wrong nexthop information.

b) Remove some dead code from sockunion.h

c) '\0' evaluates to 0 which is NULL.  vector_set takes
a pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
lib/nexthop.c
lib/sockunion.h
lib/vty.c