diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-23 21:44:34 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-11-23 22:31:11 +0100 |
commit | 4690c7d74c8d3f08ac3c4c73918c847a9dd862b4 (patch) | |
tree | 55e97b177d0b5c153f8390342660a412d5e33a19 /isisd/isis_zebra.c | |
parent | Quagga: Fixup some compile warnings (diff) | |
download | frr-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 'isisd/isis_zebra.c')
-rw-r--r-- | isisd/isis_zebra.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 27c2c92d0..86e6692e1 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -163,7 +163,7 @@ isis_zebra_if_address_add (int command, struct zclient *zclient, { struct connected *c; struct prefix *p; - char buf[BUFSIZ]; + char buf[PREFIX2STR_BUFFER]; c = zebra_interface_address_read (ZEBRA_INTERFACE_ADDRESS_ADD, zclient->ibuf, vrf_id); @@ -173,7 +173,7 @@ isis_zebra_if_address_add (int command, struct zclient *zclient, p = c->address; - prefix2str (p, buf, BUFSIZ); + prefix2str (p, buf, sizeof (buf)); #ifdef EXTREME_DEBUG if (p->family == AF_INET) zlog_debug ("connected IP address %s", buf); @@ -196,7 +196,7 @@ isis_zebra_if_address_del (int command, struct zclient *client, struct interface *ifp; #ifdef EXTREME_DEBUG struct prefix *p; - u_char buf[BUFSIZ]; + char buf[PREFIX2STR_BUFFER]; #endif /* EXTREME_DEBUG */ c = zebra_interface_address_read (ZEBRA_INTERFACE_ADDRESS_DELETE, @@ -209,7 +209,7 @@ isis_zebra_if_address_del (int command, struct zclient *client, #ifdef EXTREME_DEBUG p = c->address; - prefix2str (p, buf, BUFSIZ); + prefix2str (p, buf, sizeof (buf)); if (p->family == AF_INET) zlog_debug ("disconnected IP address %s", buf); |