summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-11-23 21:44:34 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-11-23 22:31:11 +0100
commit4690c7d74c8d3f08ac3c4c73918c847a9dd862b4 (patch)
tree55e97b177d0b5c153f8390342660a412d5e33a19 /tests
parentQuagga: Fixup some compile warnings (diff)
downloadfrr-4690c7d74c8d3f08ac3c4c73918c847a9dd862b4.tar.xz
frr-4690c7d74c8d3f08ac3c4c73918c847a9dd862b4.zip
Quagga: prefix2str fixup
During CR for nexthop upstream it was noticed that usage of prefix2str was not consistent. This fixes this problem Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/table_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/table_test.c b/tests/table_test.c
index fc9cc3dd9..ee8192707 100644
--- a/tests/table_test.c
+++ b/tests/table_test.c
@@ -112,7 +112,7 @@ add_nodes (struct route_table *table, ...)
static void
print_subtree (struct route_node *rn, const char *legend, int indent_level)
{
- char buf[INET_ADDRSTRLEN + 4];
+ char buf[PREFIX2STR_BUFFER];
int i;
/*
@@ -236,7 +236,7 @@ verify_next (struct route_table *table, const char *target, const char *next)
{
struct prefix_ipv4 target_pfx, next_pfx;
struct route_node *rn;
- char result_buf[INET_ADDRSTRLEN + 4];
+ char result_buf[PREFIX2STR_BUFFER];
if (str2prefix_ipv4 (target, &target_pfx) <= 0)
{