mirror of https://github.com/MidnightCommander/mc
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:
parent
79fb2be8d1
commit
da97a2a626
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);\
|
||||
|
|
Loading…
Reference in New Issue