mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
Now that Gnulib's 'error' module does proper static checking for not returning, we need no longer use the 'die' macro. This makes code easier to read for people that are used to 'error'. * cfg.mk (sc_die_EXIT_FAILURE): Remove. * src/die.h: Remove. All includes removed. All calls to 'die' changed back to calls to 'error'. * lib/Makefile.am (libfind_a_SOURCES): Remove 'die.h'. * src/system.h: Include error.h. Stop including error.h elsewhere. * find/ftsfind.c (process_all_startpoints): Avoid extra '\n' in error diagnostics wrt/ -files0-from. Also avoid redundant "%s" formats. * find/parser.c (parse_perm, parse_regex): * lib/buildcmd.c (bc_push_arg): Wrap calls to 'error' in block when under an if-condition and either the if-condition or the 'error' invocation is spanning over more than one line. * find/tree.c (get_pred_cost): Make error message translatable - found by sc_unmarked_diagnostics.