diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-27 22:13:51 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-27 22:31:43 -0800 |
commit | f5f931aef13a045e0993a47557151c953b1f1269 (patch) | |
tree | 5512701c841c85a8f4fb78ef8a6324f7b7267eca /lib | |
parent | 3c01caccb02686d1a4ffd0e22911f6e53badadc3 (diff) | |
download | gzip-f5f931aef13a045e0993a47557151c953b1f1269.tar.gz |
gzip: use strerror, not perror
* bootstrap.conf (gnulib_modules): Use strerror, not perror.
This removes dependencies on Gnulib’s ‘threadlib’ and ‘lock’ modules,
and simplifies the mainline code. Apparently the old code was written
before strerror was universally supported; nowadays we can use Gnulib
strerror instead. All uses of perror changed to use strerror+fprintf.
* gzip.h (WARN): Since this expands to a statement, wrap within
‘do ... while (false)’ for the usual reasons. Helpful now that
calls to WARN are now simplified.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/.gitignore | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/.gitignore b/lib/.gitignore index c769bf4..53a05cf 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -146,7 +146,6 @@ /opendir-safer.c /opendir.c /pathmax.h -/perror.c /pipe-safer.c /pipe.c /printf-args.c @@ -203,7 +202,6 @@ /strerror-override.c /strerror-override.h /strerror.c -/strerror_r.c /string.h /string.in.h /stripslash.c @@ -234,15 +232,6 @@ /warn-on-use.h /wchar.h /wchar.in.h -/windows-initguard.h -/windows-mutex.c -/windows-mutex.h -/windows-once.c -/windows-once.h -/windows-recmutex.c -/windows-recmutex.h -/windows-rwlock.c -/windows-rwlock.h /xalloc-die.c /xalloc-oversized.h /xalloc.h |