babeld: Cleanup xroute_stream

Cleanup warnings associated with xroute_stream

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-05-13 22:46:21 -04:00
parent f1d1a0b0b7
commit dd15627e26
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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);