httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/os2 filedup.c
Date Tue, 18 Apr 2000 14:27:09 GMT
bjh         00/04/18 07:27:09

  Modified:    src/lib/apr/file_io/os2 filedup.c
  Log:
  Update OS/2 ap_dupfile() to match unix version, taking a pool for the
  duplicate.
  
  Revision  Changes    Path
  1.13      +3 -3      apache-2.0/src/lib/apr/file_io/os2/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/os2/filedup.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- filedup.c	2000/04/08 06:58:39	1.12
  +++ filedup.c	2000/04/18 14:27:08	1.13
  @@ -60,24 +60,24 @@
   #define INCL_DOS
   #include <os2.h>
   
  -ap_status_t ap_dupfile(ap_file_t **new_file, ap_file_t *old_file)
  +ap_status_t ap_dupfile(ap_file_t **new_file, ap_file_t *old_file, ap_pool_t *p)
   {
       int rv;
       ap_file_t *dup_file;
   
       if (*new_file == NULL) {
  -        dup_file = (ap_file_t *)ap_palloc(old_file->cntxt, sizeof(ap_file_t));
  +        dup_file = (ap_file_t *)ap_palloc(p, sizeof(ap_file_t));
   
           if (dup_file == NULL) {
               return APR_ENOMEM;
           }
   
           dup_file->filedes = -1;
  -        dup_file->cntxt = old_file->cntxt;
       } else {
         dup_file = *new_file;
       }
   
  +    dup_file->cntxt = p;
       rv = DosDupHandle(old_file->filedes, &dup_file->filedes);
   
       if (rv) {
  
  
  

Mime
View raw message