Avoid a compilation error on mingw.
authorBruno Haible <bruno@clisp.org>
Sun, 19 Oct 2008 12:08:13 +0000 (14:08 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 19 Oct 2008 12:08:13 +0000 (14:08 +0200)
ChangeLog
lib/openat-die.c

index 72bc4d4..d8a1b17 100644 (file)
--- 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.
index 77da06e..81498ae 100644 (file)
@@ -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 @@ openat_save_fail (int errno)
 }
 
 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.  */