summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2019-06-03 16:11:34 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2019-06-22 15:10:56 +0200
commit020a3906495ee68b8d070efa2f2d79e26363c67e (patch)
tree68fa6e899b9fe8a23d1d82cb9295e38b2991ddb5
parentbfdd: support global BFD reset (diff)
downloadfrr-020a3906495ee68b8d070efa2f2d79e26363c67e.tar.xz
frr-020a3906495ee68b8d070efa2f2d79e26363c67e.zip
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>
-rw-r--r--lib/northbound_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c
index c96bfbdb9..c691bb27a 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)))