summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-12-27 22:13:51 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-12-27 22:31:43 -0800
commitf5f931aef13a045e0993a47557151c953b1f1269 (patch)
tree5512701c841c85a8f4fb78ef8a6324f7b7267eca /m4
parent3c01caccb02686d1a4ffd0e22911f6e53badadc3 (diff)
downloadgzip-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 'm4')
-rw-r--r--m4/.gitignore6
1 files changed, 0 insertions, 6 deletions
diff --git a/m4/.gitignore b/m4/.gitignore
index 48f5605..33621cc 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -70,7 +70,6 @@
/ldexpl.m4
/lib-ignore.m4
/limits-h.m4
-/lock.m4
/lseek.m4
/lstat.m4
/malloc.m4
@@ -95,14 +94,12 @@
/openat.m4
/opendir.m4
/pathmax.m4
-/perror.m4
/pid_t.m4
/pipe.m4
/printf-frexp.m4
/printf-frexpl.m4
/printf-posix-rpl.m4
/printf.m4
-/pthread_rwlock_rdlock.m4
/raise.m4
/readdir.m4
/realloc.m4
@@ -128,13 +125,11 @@
/stpcpy.m4
/strdup.m4
/strerror.m4
-/strerror_r.m4
/string_h.m4
/sys_socket_h.m4
/sys_stat_h.m4
/sys_time_h.m4
/sys_types_h.m4
-/threadlib.m4
/time_h.m4
/timespec.m4
/ungetc.m4
@@ -156,6 +151,5 @@
/wint_t.m4
/xalloc.m4
/xsize.m4
-/year2038.m4
/yesno.m4
/zzgnulib.m4