diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2017-11-12 18:45:53 +0100 |
---|---|---|
committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2017-11-13 18:40:29 +0100 |
commit | aa742e34b8e8dbb462095850eca8c67a97cb26b2 (patch) | |
tree | 88ca7101c0fa4554fa4997495ae85f8ad3a524ee /locate/locate.1 | |
parent | ff4701b4ef65a8baba43754125e2cf4777eaf55a (diff) | |
download | findutils-aa742e34b8e8dbb462095850eca8c67a97cb26b2.tar.gz |
all: use die() rather than error(EXIT_FAILURE)
die() has the advantage of being apparent to the compiler
that it doesn't return, which will avoid warnings in some cases,
and possibly generate better code.
While at it, wrap some of the overly long error messages into a new line.
* cfg.mk (sc_die_EXIT_FAILURE): A new syntax check rule to
catch any new uses of error (CONSTANT, ...);
* find/exec.c: Include "die.h" and use die rather than exit (EXIT_FAILURE).
* find/fstype.c: Likewise.
* find/ftsfind.c: Likewise.
* find/oldfind.c: Likewise.
* find/parser.c: Likewise.
* find/pred.c: Likewise.
* find/print.c: Likewise.
* find/tree.c: Likewise.
* find/util.c: Likewise.
* lib/buildcmd.c: Likewise.
* lib/listfile.c: Likewise.
* lib/regextype.c: Likewise.
* lib/safe-atoi.c: Likewise.
* locate/frcode.c: Likewise.
* locate/locate.c: Likewise.
* locate/word_io.c: Likewise.
* xargs/xargs.c: Likewise.
Diffstat (limited to 'locate/locate.1')
0 files changed, 0 insertions, 0 deletions