summaryrefslogtreecommitdiff
path: root/tests/bgp_capability_test.c
diff options
context:
space:
mode:
authorPaul Jakma <paul@quagga.net>2012-05-01 16:20:33 +0100
committerPaul Jakma <paul@quagga.net>2012-05-02 11:02:10 +0100
commit1dba254e107dd0c4254d58e9304fc6293b46fd4d (patch)
tree963153a04b71da32dd5906b80aaf24a1bb6c93e9 /tests/bgp_capability_test.c
parent6ebeebb50610cc86d16e56bc1a33d63340094215 (diff)
tests: Fix some compile errors and warnings
* aspath_test.c: match changes in aspath_unintern. Fix printf size_t warning. * bgp_capability_test.c: compile warnings. * bgp_mp_attr_test.c: update for attr parser context struct * ecommunity_test.c: ecommunity_free/ecommunity * test-checksum.c: some unused vars and funcs without need of prototypes.
Diffstat (limited to 'tests/bgp_capability_test.c')
-rw-r--r--tests/bgp_capability_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bgp_capability_test.c b/tests/bgp_capability_test.c
index 9b43159c..83da2e48 100644
--- a/tests/bgp_capability_test.c
+++ b/tests/bgp_capability_test.c
@@ -8,6 +8,7 @@
#include "bgpd/bgpd.h"
#include "bgpd/bgp_open.h"
#include "bgpd/bgp_debug.h"
+#include "bgpd/bgp_packet.h"
#define VT100_RESET "\x1b[0m"
#define VT100_RED "\x1b[31m"
@@ -35,7 +36,7 @@ static struct test_segment {
#define SHOULD_PARSE 0
#define SHOULD_ERR -1
int parses; /* whether it should parse or not */
- int peek_for; /* what peek_for_as4_capability should say */
+ as_t peek_for; /* what peek_for_as4_capability should say */
/* AFI/SAFI validation */
int validate_afi;
@@ -625,7 +626,7 @@ main (void)
return -1;
peer = peer_create_accept (bgp);
- peer->host = "foo";
+ peer->host = (char *) "foo";
for (i = AFI_IP; i < AFI_MAX; i++)
for (j = SAFI_UNICAST; j < SAFI_MAX; j++)