changeset 10668:26ed9785f377

Avoid a compilation error on mingw.
author Bruno Haible <bruno@clisp.org>
date Sun, 19 Oct 2008 14:08:13 +0200
parents 678640901735
children c41f0a0726e6
files ChangeLog lib/openat-die.c
diffstat 2 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2008-10-18  Bruno Haible  <bruno@clisp.org>
+2008-10-19  Bruno Haible  <bruno@clisp.org>
+
+	* lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
+	the parameter from 'errno' to 'errnum'. Fixes a compilation error on
+	mingw.
+
+2008-10-19  Bruno Haible  <bruno@clisp.org>
 
 	* lib/atanl.c: Don't include isnanl.h.
 	* lib/cosl.c: Likewise.
--- a/lib/openat-die.c
+++ b/lib/openat-die.c
@@ -29,9 +29,9 @@
 #define N_(msgid) msgid
 
 void
-openat_save_fail (int errno)
+openat_save_fail (int errnum)
 {
-  error (exit_failure, errno,
+  error (exit_failure, errnum,
 	 _("unable to record current working directory"));
 
   /* The `noreturn' attribute cannot be applied to error, since it returns
@@ -42,9 +42,9 @@
 }
 
 void
-openat_restore_fail (int errno)
+openat_restore_fail (int errnum)
 {
-  error (exit_failure, errno,
+  error (exit_failure, errnum,
 	 _("failed to return to initial working directory"));
 
   /* As above.  */