httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/misc/unix errorcodes.c
Date Fri, 06 Oct 2000 17:21:50 GMT
wrowe       00/10/06 10:21:50

  Modified:    src/lib/apr/misc/unix errorcodes.c
  Log:
    One more underlying change to highlight of the Win32 canonical errors.
  
  Revision  Changes    Path
  1.26      +1 -10     apache-2.0/src/lib/apr/misc/unix/errorcodes.c
  
  Index: errorcodes.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/unix/errorcodes.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- errorcodes.c	2000/08/06 06:07:15	1.25
  +++ errorcodes.c	2000/10/06 17:21:49	1.26
  @@ -211,6 +211,7 @@
       DWORD len;
       DWORD i;
   
  +    
       len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
                           NULL,
                           errcode,
  @@ -280,17 +281,7 @@
   char *apr_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize)
   {
       if (statcode < APR_OS_START_ERROR) {
  -#ifdef WIN32
  -        /* XXX This is just plain wrong.  We started discussing this one
  -         * day, and then it dropped, but doing this here is a symptom of a
  -         * problem with the design that will keep us from safely sharing 
  -         * Windows code with any other platform.  This needs to be changed, 
  -         * Windows is NOT a special platform when it comes to APR. rbb
  -         */
  -        return apr_os_strerror(buf, bufsize, statcode);
  -#else
           return stuffbuffer(buf, bufsize, strerror(statcode));
  -#endif
       }
       else if (statcode < APR_OS_START_USEERR) {
           return stuffbuffer(buf, bufsize, apr_error_string(statcode));
  
  
  

Mime
View raw message