jcs
/amend
/amendments
/174
repo+settings: Fix format strings
jcs made amendment 174 5 days ago
--- repo.c Mon Sep 28 14:23:49 2026
+++ repo.c Mon Sep 28 14:26:56 2026
@@ -1070,7 +1070,7 @@ repo_amend(struct repo *repo, struct diffed_file *diff
tdata = xmalloc(fsize);
error = FSRead(frefnum, &fsize, tdata);
if (error)
- panic("Failed to read %ul of file %s: %d", fsize,
+ panic("Failed to read %lu of file %s: %d", fsize,
PtoCstr(tfilename), error);
FSClose(frefnum);
--- settings.c Mon Sep 28 13:48:57 2026
+++ settings.c Mon Sep 28 14:27:13 2026
@@ -336,14 +336,14 @@ verify:
lval = atol((char *)stmp);
if (lval < s->min) {
if (s->type == SETTING_USHORT)
- warn("%s must be at least %ul", s->name, s->min);
+ warn("%s must be at least %lu", s->name, s->min);
else
warn("%s must be at least %ld", s->name, s->min);
goto get_input;
}
if (lval > s->max) {
if (s->type == SETTING_USHORT)
- warn("%s must be less than %ul", s->name, s->max);
+ warn("%s must be less than %lu", s->name, s->max);
else
warn("%s must be less than %ld", s->name, s->max);
goto get_input;