0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 07:31:54 +00:00

Add const to fib_init()

This commit is contained in:
Pavel Tvrdik 2016-05-11 15:27:22 +02:00
parent c845c4895f
commit 567a09d00f
2 changed files with 2 additions and 2 deletions

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

View 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;