summaryrefslogtreecommitdiff
path: root/tests/bgp_capability_test.c
diff options
context:
space:
mode:
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++)