diff options
author | Jan Janssen <medhefgo@web.de> | 2022-08-30 09:52:03 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-08-30 12:03:33 +0200 |
commit | f996072fe05358ac24460dff1dc12dd804bf210d (patch) | |
tree | 4f459f4caaec458b8b2007c4f487571977a8cb07 /src/firstboot | |
parent | 5570a09702b2a4c77772617d5fce97b6b70ec03f (diff) | |
download | systemd-f996072fe05358ac24460dff1dc12dd804bf210d.tar.gz |
tree-wide: Fix field width specifier warnings
The casting here isn't pretty, but at least it makes it obvious what is
happening instead of implicit and it allows enabling -Wformat-signedness.
Diffstat (limited to 'src/firstboot')
-rw-r--r-- | src/firstboot/firstboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index fd9954b54d..abeafacc38 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -161,7 +161,7 @@ static int show_menu(char **x, unsigned n_columns, unsigned width, unsigned perc if (!e) return log_oom(); - printf("%4zu) %-*s", j * per_column + i + 1, width, e); + printf("%4zu) %-*s", j * per_column + i + 1, (int) width, e); } putchar('\n'); |