]> git.proxmox.com Git - mirror_frr.git/commit - tests/bgpd/test_capability.c
tests: fix warnings related to afi/safi constants
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 1 Feb 2018 23:04:03 +0000 (21:04 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 2 Feb 2018 18:31:07 +0000 (16:31 -0200)
commit6bba65f29f4d8801930a6a0b87bd7a2906617622
treebe386a105cbd4964a0b57a9ca9f0f376643596e3
parenta36fbef21a4685bb30e079c3321effdb1f7ec583
tests: fix warnings related to afi/safi constants

We were improperly mixing constants used to identify AFI/SAFI values
using the IANA and internal representations. Things happened to be
working because the IANA/internal values are the same in some cases
(e.g. AFI_IP and IANA_AFI_IPV4). This commit fixes a few warnings when
running "make check" on FreeBSD 11.1.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
tests/bgpd/test_capability.c