libcheck: replace deprecated fail() function.

libcheck fail() is deprecated since 0.10.0.
Also fix -Wformat-extra-args warnings.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2020-12-28 17:58:59 +00:00 committed by Andrew Borodin
parent 79fb2be8d1
commit da97a2a626
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ config_object__reopen (void)
if (!mc_config_save_file (mc_config, &error))
{
fail ("Unable to save config file: %s", error->message);
ck_abort_msg ("Unable to save config file: %s", error->message);
g_error_free (error);
}

View File

@ -365,7 +365,7 @@ END_TEST
if (! vfs_parse_ls_lga (ls_output,\
&ent[ent_index]->ino->st, &ent[ent_index]->name, &ent[ent_index]->ino->linkname, &filepos))\
{\
fail ("An error occurred while parse ls output");\
ck_abort_msg ("An error occurred while parse ls output");\
return;\
}\
vfs_s_store_filename_leading_spaces (ent[ent_index], filepos);\