apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/misc/unix errorcodes.c
Date Tue, 07 Aug 2001 23:21:32 GMT
bnicholes    01/08/07 16:21:32

  Modified:    misc/unix errorcodes.c
  Log:
  Fixed apr_os_strerror() to allow it to handle Winsock errors for NetWare
  
  Revision  Changes    Path
  1.41      +4 -2      apr/misc/unix/errorcodes.c
  
  Index: errorcodes.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- errorcodes.c	2001/06/07 14:32:06	1.40
  +++ errorcodes.c	2001/08/07 23:21:32	1.41
  @@ -215,7 +215,7 @@
     return stuffbuffer(buf, bufsize, result);  
   }
   
  -#elif defined(WIN32)
  +#elif defined(WIN32) || defined(NETWARE)
   
   static const struct {
       apr_status_t code;
  @@ -276,8 +276,9 @@
   
   static char *apr_os_strerror(char *buf, apr_size_t bufsize, apr_status_t errcode)
   {
  -    apr_size_t len, i;
  +    apr_size_t len=0, i;
   
  +#ifndef NETWARE
       len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
                           NULL,
                           errcode,
  @@ -285,6 +286,7 @@
                           (LPTSTR) buf,
                           (DWORD)bufsize,
                           NULL);
  +#endif
   
       if (!len) {
           for (i = 0; gaErrorList[i].msg; ++i) {
  
  
  

Mime
View raw message