From 0f9de11a11644b77cc60d6ff6ac4519d2e5c29e1 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 26 Jan 2023 14:21:02 +0100 Subject: *: apply proper format string attributes So that we get warnings about broken format strings. Signed-off-by: David Lamparter --- lib/northbound_cli.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/northbound_cli.h') 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. -- cgit v1.2.3