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 filedup.c
Date Wed, 19 Mar 2003 10:17:26 GMT
jorton      2003/03/19 02:17:26

  Modified:    file_io/unix filedup.c
  Log:
  Fix "unused variable" compiler warning in apr_file_dup2 and eliminate
  local variable in apr_file_dup.
  
  Revision  Changes    Path
  1.60      +1 -6      apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- filedup.c	19 Mar 2003 03:34:47 -0000	1.59
  +++ filedup.c	19 Mar 2003 10:17:26 -0000	1.60
  @@ -141,17 +141,12 @@
   APR_DECLARE(apr_status_t) apr_file_dup(apr_file_t **new_file,
                                          apr_file_t *old_file, apr_pool_t *p)
   {
  -    apr_status_t rv;
  -
  -    rv = _file_dup(new_file, old_file, p, 1);
  -    return rv;
  +    return _file_dup(new_file, old_file, p, 1);
   }
   
   APR_DECLARE(apr_status_t) apr_file_dup2(apr_file_t *new_file,
                                           apr_file_t *old_file, apr_pool_t *p)
   {
  -    apr_status_t rv;
  -
       /* an existing apr_file_t may already be closed, and therefore
        * have no cleanup remaining; but we don't want to double-register
        * the same cleanup in _file_dup.  Kill the existing cleanup before
  
  
  

Mime
View raw message