mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-23 10:24:14 +00:00
babeld: Cleanup xroute_stream
Cleanup warnings associated with xroute_stream Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f1d1a0b0b7
commit
dd15627e26
@ -1063,7 +1063,7 @@ DEFUN (show_babel_route,
|
||||
} else {
|
||||
zlog_err("Couldn't allocate route stream.");
|
||||
}
|
||||
xroutes = xroute_stream(0);
|
||||
xroutes = xroute_stream();
|
||||
if(xroutes) {
|
||||
while(1) {
|
||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||
@ -1109,7 +1109,7 @@ DEFUN (show_babel_route_prefix,
|
||||
} else {
|
||||
zlog_err("Couldn't allocate route stream.");
|
||||
}
|
||||
xroutes = xroute_stream(0);
|
||||
xroutes = xroute_stream();
|
||||
if(xroutes) {
|
||||
while(1) {
|
||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||
@ -1166,7 +1166,7 @@ DEFUN (show_babel_route_addr,
|
||||
} else {
|
||||
zlog_err("Couldn't allocate route stream.");
|
||||
}
|
||||
xroutes = xroute_stream(0);
|
||||
xroutes = xroute_stream();
|
||||
if(xroutes) {
|
||||
while(1) {
|
||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||
@ -1224,7 +1224,7 @@ DEFUN (show_babel_route_addr6,
|
||||
} else {
|
||||
zlog_err("Couldn't allocate route stream.");
|
||||
}
|
||||
xroutes = xroute_stream(0);
|
||||
xroutes = xroute_stream();
|
||||
if(xroutes) {
|
||||
while(1) {
|
||||
struct xroute *xroute = xroute_stream_next(xroutes);
|
||||
|
@ -189,7 +189,7 @@ struct xroute_stream {
|
||||
|
||||
struct
|
||||
xroute_stream *
|
||||
xroute_stream()
|
||||
xroute_stream(void)
|
||||
{
|
||||
struct xroute_stream *stream = malloc(sizeof(struct xroute_stream));
|
||||
if(stream == NULL)
|
||||
|
@ -45,7 +45,7 @@ int babel_ipv6_route_add (struct zapi_ipv6 *api, struct prefix_ipv6 *prefix,
|
||||
int babel_ipv6_route_delete (struct zapi_ipv6 *api, struct prefix_ipv6 *prefix,
|
||||
unsigned int ifindex);
|
||||
int xroutes_estimate(void);
|
||||
struct xroute_stream *xroute_stream();
|
||||
struct xroute_stream *xroute_stream(void);
|
||||
struct xroute *xroute_stream_next(struct xroute_stream *stream);
|
||||
void xroute_stream_done(struct xroute_stream *stream);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user