diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-13 22:46:21 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-13 22:46:21 -0400 |
| commit | dd15627e26f3fc7ecbc97eb9bc5bb5d16e422cfb (patch) | |
| tree | 86ccbb73534c8974fd866867b4db0d2e9e0769a3 | |
| parent | f1d1a0b0b7e3a474c546ec128e9f6a6e3ef546b2 (diff) | |
babeld: Cleanup xroute_stream
Cleanup warnings associated with xroute_stream
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | babeld/babel_interface.c | 8 | ||||
| -rw-r--r-- | babeld/xroute.c | 2 | ||||
| -rw-r--r-- | babeld/xroute.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/babeld/babel_interface.c b/babeld/babel_interface.c index ffbc9949be..2c2b5187c3 100644 --- a/babeld/babel_interface.c +++ b/babeld/babel_interface.c @@ -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); diff --git a/babeld/xroute.c b/babeld/xroute.c index 342b5c4871..2e123564ea 100644 --- a/babeld/xroute.c +++ b/babeld/xroute.c @@ -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) diff --git a/babeld/xroute.h b/babeld/xroute.h index f24f3927c2..27899e62a1 100644 --- a/babeld/xroute.h +++ b/babeld/xroute.h @@ -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); |
