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 013decd..ffd1ba6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
        HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
index 65d230a..f0b59c7 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)