From dd15627e26f3fc7ecbc97eb9bc5bb5d16e422cfb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 13 May 2017 22:46:21 -0400 Subject: [PATCH] babeld: Cleanup xroute_stream Cleanup warnings associated with xroute_stream Signed-off-by: Donald Sharp --- babeld/babel_interface.c | 8 ++++---- babeld/xroute.c | 2 +- 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); -- 2.39.5