summaryrefslogtreecommitdiff
path: root/lib/northbound_cli.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-01-26 14:21:02 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-01-27 12:01:17 +0100
commit0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 (patch)
treec8e418c2049ef79101e62821f2b49506654eb4bd /lib/northbound_cli.h
parente784f789fb7af43027eeee55a3f16026ab36b9e4 (diff)
*: apply proper format string attributes
So that we get warnings about broken format strings. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_cli.h')
-rw-r--r--lib/northbound_cli.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/northbound_cli.h b/lib/northbound_cli.h
index e472425447..d848507e01 100644
--- a/lib/northbound_cli.h
+++ b/lib/northbound_cli.h
@@ -71,7 +71,8 @@ extern void nb_cli_enqueue_change(struct vty *vty, const char *xpath,
* CMD_SUCCESS on success, CMD_WARNING_CONFIG_FAILED otherwise.
*/
extern int nb_cli_apply_changes_clear_pending(struct vty *vty,
- const char *xpath_base_fmt, ...);
+ const char *xpath_base_fmt, ...)
+ PRINTFRR(2, 3);
/*
* Apply enqueued changes to the candidate configuration, this function
@@ -89,7 +90,7 @@ extern int nb_cli_apply_changes_clear_pending(struct vty *vty,
* CMD_SUCCESS on success, CMD_WARNING_CONFIG_FAILED otherwise.
*/
extern int nb_cli_apply_changes(struct vty *vty, const char *xpath_base_fmt,
- ...);
+ ...) PRINTFRR(2, 3);
/*
* Execute a YANG RPC or Action.