From b24b65ea701dc6eade1ce959a522623e3ac22e5f Mon Sep 17 00:00:00 2001 From: Giovanni Simoni Date: Thu, 16 Jan 2025 14:21:33 +0100 Subject: [PATCH] util: use %u for unsigned integers --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index d9cd47d..858c9d9 100644 --- a/util.c +++ b/util.c @@ -1423,7 +1423,7 @@ int do_manual_authentication(const cfg_t *cfg, const device_t *devices, debug_dbg(cfg, "Challenge: %s", b64_challenge); - n = snprintf(prompt, sizeof(prompt), "Challenge #%d:", i + 1); + n = snprintf(prompt, sizeof(prompt), "Challenge #%u:", i + 1); if (n <= 0 || (size_t) n >= sizeof(prompt)) { debug_dbg(cfg, "Failed to print challenge prompt"); goto out; @@ -1449,7 +1449,7 @@ int do_manual_authentication(const cfg_t *cfg, const device_t *devices, "paste the results in the prompt below."); for (i = 0; i < n_devs; ++i) { - n = snprintf(prompt, sizeof(prompt), "Response #%d: ", i + 1); + n = snprintf(prompt, sizeof(prompt), "Response #%u: ", i + 1); if (n <= 0 || (size_t) n >= sizeof(prompt)) { debug_dbg(cfg, "Failed to print response prompt"); goto out;