mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
(quit_cmd_internal): cleanup -Wformat-signedness warning.
midnight.c: In function 'quit_cmd_internal': midnight.c:1027:31: error: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=] "You have %zd opened screens. Quit anyway?", n), n); ^ midnight.c:1026:31: error: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'size_t {aka long unsigned int}' [-Werror=format=] ngettext ("You have %zd opened screen. Quit anyway?", ^ Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
2b265834ab
commit
3b1183571a
@ -1025,8 +1025,8 @@ quit_cmd_internal (int quiet)
|
|||||||
char msg[BUF_MEDIUM];
|
char msg[BUF_MEDIUM];
|
||||||
|
|
||||||
g_snprintf (msg, sizeof (msg),
|
g_snprintf (msg, sizeof (msg),
|
||||||
ngettext ("You have %zd opened screen. Quit anyway?",
|
ngettext ("You have %zu opened screen. Quit anyway?",
|
||||||
"You have %zd opened screens. Quit anyway?", n), n);
|
"You have %zu opened screens. Quit anyway?", n), n);
|
||||||
|
|
||||||
if (query_dialog (_("The Midnight Commander"), msg, D_NORMAL, 2, _("&Yes"), _("&No")) != 0)
|
if (query_dialog (_("The Midnight Commander"), msg, D_NORMAL, 2, _("&Yes"), _("&No")) != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user