httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/unix open.c
Date Sun, 18 Jun 2000 16:28:56 GMT
trawick     00/06/18 09:28:55

  Modified:    src/lib/apr/file_io/unix open.c
  Log:
  make a tiny cleanup in ap_unix_file_cleanup();
  add a comment about possible code reuse in ap_open_stderr();
  
  Revision  Changes    Path
  1.57      +4 -3      apache-2.0/src/lib/apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/open.c,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- open.c	2000/06/17 18:16:10	1.56
  +++ open.c	2000/06/18 16:28:55	1.57
  @@ -68,10 +68,8 @@
           if (file->thlock) {
               return ap_destroy_lock(file->thlock);
           }
  -        return APR_SUCCESS;
  -#else
  -        return APR_SUCCESS;
   #endif
  +        return APR_SUCCESS;
       }
       else {
           return errno;
  @@ -237,6 +235,9 @@
       return APR_SUCCESS;
   }   
   
  +/* ap_open_stderr() could just call ap_put_os_file() with
  + * STDERR_FILENO for the descriptor...
  + */
   ap_status_t ap_open_stderr(ap_file_t **thefile, ap_pool_t *cont)
   {
       (*thefile) = ap_pcalloc(cont, sizeof(ap_file_t));
  
  
  

Mime
View raw message