(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:
Andreas Mohr 2016-09-17 12:05:58 +00:00 committed by Andrew Borodin
parent 2b265834ab
commit 3b1183571a

View File

@ -1025,8 +1025,8 @@ quit_cmd_internal (int quiet)
char msg[BUF_MEDIUM];
g_snprintf (msg, sizeof (msg),
ngettext ("You have %zd opened screen. Quit anyway?",
"You have %zd opened screens. Quit anyway?", n), n);
ngettext ("You have %zu opened screen. Quit anyway?",
"You have %zu opened screens. Quit anyway?", n), n);
if (query_dialog (_("The Midnight Commander"), msg, D_NORMAL, 2, _("&Yes"), _("&No")) != 0)
return FALSE;