]> git.puffer.fish Git - matthieu/frr.git/commitdiff
babeld: Cleanup xroute_stream
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 02:46:21 +0000 (22:46 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 14 May 2017 02:46:21 +0000 (22:46 -0400)
Cleanup warnings associated with xroute_stream

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
babeld/babel_interface.c
babeld/xroute.c
babeld/xroute.h

index ffbc9949bec5b138b51ab08fe3bb31edca3c47ec..2c2b5187c3c8b956d02f633cccc92e5eb23d72d9 100644 (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);
index 342b5c487181540f2ceeec6f77c38b7c5dc90e94..2e123564ea267dcc13fe5940411a06591d2bd341 100644 (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)
index f24f3927c29dc156e7af4d314df30cce991f03f5..27899e62a1a9055e142f5f1c6e4acc472815a336 100644 (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);