apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/misc/unix errorcodes.c
Date Wed, 16 May 2001 03:49:16 GMT
wrowe       01/05/15 20:49:16

  Modified:    misc/unix errorcodes.c
  Log:
    Those aren't DWORDs, they are apr_size_t.
  
  Revision  Changes    Path
  1.36      +2 -3      apr/misc/unix/errorcodes.c
  
  Index: errorcodes.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- errorcodes.c	2001/04/08 08:03:09	1.35
  +++ errorcodes.c	2001/05/16 03:49:16	1.36
  @@ -278,15 +278,14 @@
   
   static char *apr_os_strerror(char *buf, apr_size_t bufsize, apr_status_t errcode)
   {
  -    DWORD len;
  -    DWORD i;
  +    apr_size_t len, i;
   
       len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
                           NULL,
                           errcode,
                           MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language
*/
                           (LPTSTR) buf,
  -                        bufsize,
  +                        (DWORD)bufsize,
                           NULL);
   
       if (!len) {
  
  
  

Mime
View raw message