From 2560505196b924f5c447f6c1d493ed9b74a13108 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 13 Oct 2021 20:08:37 +0300 Subject: lib: northbound cli show/cmd functions must not modify data nodes To ensure this, add a const modifier to functions' arguments. Would be great do this initially and avoid this large code change, but better late than never. Signed-off-by: Igor Ryzhov --- lib/northbound_cli.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/northbound_cli.h') diff --git a/lib/northbound_cli.h b/lib/northbound_cli.h index 28f81f8b3..e47242544 100644 --- a/lib/northbound_cli.h +++ b/lib/northbound_cli.h @@ -127,7 +127,8 @@ extern int nb_cli_rpc(struct vty *vty, const char *xpath, struct list *input, * show_defaults * Specify whether to display default configuration values or not. */ -extern void nb_cli_show_dnode_cmds(struct vty *vty, struct lyd_node *dnode, +extern void nb_cli_show_dnode_cmds(struct vty *vty, + const struct lyd_node *dnode, bool show_defaults); /* -- cgit v1.2.3