Skip to content

Commit e610df3

Browse files
dacavLDVG
authored andcommitted
util: use %u for unsigned integer
1 parent 83a1fd2 commit e610df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ int do_manual_authentication(const cfg_t *cfg, const device_t *devices,
14381438

14391439
debug_dbg(cfg, "Challenge: %s", b64_challenge);
14401440

1441-
n = snprintf(prompt, sizeof(prompt), "Challenge #%d:", i + 1);
1441+
n = snprintf(prompt, sizeof(prompt), "Challenge #%u:", i + 1);
14421442
if (n <= 0 || (size_t) n >= sizeof(prompt)) {
14431443
debug_dbg(cfg, "Failed to print challenge prompt");
14441444
goto out;
@@ -1464,7 +1464,7 @@ int do_manual_authentication(const cfg_t *cfg, const device_t *devices,
14641464
"paste the results in the prompt below.");
14651465

14661466
for (i = 0; i < n_devs; ++i) {
1467-
n = snprintf(prompt, sizeof(prompt), "Response #%d: ", i + 1);
1467+
n = snprintf(prompt, sizeof(prompt), "Response #%u: ", i + 1);
14681468
if (n <= 0 || (size_t) n >= sizeof(prompt)) {
14691469
debug_dbg(cfg, "Failed to print response prompt");
14701470
goto out;

0 commit comments

Comments
 (0)