strerror_r: Fix comments.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 02:23:33 +0000 (04:23 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 02:23:33 +0000 (04:23 +0200)
* lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.

ChangeLog
lib/strerror_r.c

index 013decd27953635e473bbfd4b8fff174004d8202..ffd1ba6980ce3aefb1bdb86302ce8eec89d489c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       strerror_r: Fix comments.
+       * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        relocatable-prog-wrapper: Fix possible link error.
index 65d230ac5b1b9be169625739aac82e7421fe1594..f0b59c717c248e3717ccb7409a061406641d606f 100644 (file)
@@ -77,7 +77,7 @@ extern char *sys_errlist[];
 extern int sys_nerr;
 #  endif
 
-/* Get sys_nerr, sys_errlist on native Windows and Cygwin.  */
+/* Get sys_nerr, sys_errlist on native Windows.  */
 #  include <stdlib.h>
 
 # else
@@ -504,7 +504,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
                       and <errno.h> above.
        HP-UX:         sys_nerr, sys_errlist are declared explicitly above.
        native Win32:  sys_nerr, sys_errlist are declared in <stdlib.h>.
-       Cygwin:        sys_nerr, sys_errlist are declared in <stdlib.h>.  */
+       Cygwin:        sys_nerr, sys_errlist are declared in <errno.h>.  */
     if (errnum >= 0 && errnum < sys_nerr)
       {
 #  if HAVE_CATGETS && (defined __NetBSD__ || defined __hpux)