diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-06-03 11:11:34 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-06-22 10:10:56 -0300 |
| commit | 020a3906495ee68b8d070efa2f2d79e26363c67e (patch) | |
| tree | 68fa6e899b9fe8a23d1d82cb9295e38b2991ddb5 /lib/northbound_cli.c | |
| parent | 2a573ff672f4b0eb76138362403a680bc9fc7fce (diff) | |
lib: fix northbound static analyzer warning
Make the function parameter `const` so the analyzer doesn't suspect we
are trying to change its value.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_cli.c')
| -rw-r--r-- | lib/northbound_cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index c96bfbdb91..c691bb27aa 100644 --- a/lib/northbound_cli.c +++ b/lib/northbound_cli.c @@ -440,7 +440,7 @@ static int nb_cli_candidate_load_transaction(struct vty *vty, * This function detects whether next node in the iteration is upwards, * then return the node otherwise return NULL. */ -static struct lyd_node *ly_iter_next_up(struct lyd_node *elem) +static struct lyd_node *ly_iter_next_up(const struct lyd_node *elem) { /* Are we going downwards? Is this still not a leaf? */ if (!(elem->schema->nodetype & (LYS_LEAF | LYS_LEAFLIST | LYS_ANYDATA))) |
