]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add const to fib_init()
authorPavel Tvrdik <pawel.tvrdik@gmail.com>
Wed, 11 May 2016 13:27:22 +0000 (15:27 +0200)
committerPavel Tvrdik <pawel.tvrdik@gmail.com>
Wed, 11 May 2016 13:27:22 +0000 (15:27 +0200)
nest/route.h
nest/rt-fib.c

index c23dcc10584f4f59fd202b54e2daa4c5c3b9e589..377874f03c05b88fc4c71ddb89e5db36b9e7d85f 100644 (file)
@@ -81,7 +81,7 @@ void fib_delete(struct fib *, void *);        /* Remove fib entry */
 void fib_free(struct fib *);           /* Destroy the fib */
 void fib_check(struct fib *);          /* Consistency check for debugging */
 
-void fit_init(struct fib_iterator *, struct fib *); /* Internal functions, don't call */
+void fit_init(struct fib_iterator *, const struct fib *); /* Internal functions, don't call */
 struct fib_node *fit_get(struct fib *, struct fib_iterator *);
 void fit_put(struct fib_iterator *, struct fib_node *);
 void fit_put_next(struct fib *f, struct fib_iterator *i, struct fib_node *n, uint hpos);
index 8021ea24cd314176131697f3e3d6f7f424a70339..6ee7b2a561dc71a8d4da161b4177c34297a4b906 100644 (file)
@@ -446,7 +446,7 @@ fib_free(struct fib *f)
 }
 
 void
-fit_init(struct fib_iterator *i, struct fib *f)
+fit_init(struct fib_iterator *i, const struct fib *f)
 {
   unsigned h;
   struct fib_node *n;