apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/file_io/unix open.c
Date Thu, 06 Mar 2003 09:24:18 GMT
jorton      2003/03/06 01:24:18

  Modified:    file_io/unix open.c
  Log:
  Eliminate a local variable in apr_unix_file_cleanup.
  
  Revision  Changes    Path
  1.110     +1 -3      apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/open.c,v
  retrieving revision 1.109
  retrieving revision 1.110
  diff -u -r1.109 -r1.110
  --- open.c	14 Jan 2003 00:51:35 -0000	1.109
  +++ open.c	6 Mar 2003 09:24:17 -0000	1.110
  @@ -68,13 +68,11 @@
   {
       apr_file_t *file = thefile;
       apr_status_t flush_rv = APR_SUCCESS, rv = APR_SUCCESS;
  -    int rc;
   
       if (file->buffered) {
           flush_rv = apr_file_flush(file);
       }
  -    rc = close(file->filedes);
  -    if (rc == 0) {
  +    if (close(file->filedes) == 0) {
           file->filedes = -1;
           if (file->flags & APR_DELONCLOSE) {
               unlink(file->fname);
  
  
  

Mime
View raw message