diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-03-19 10:17:26 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2003-03-19 10:17:26 +0000 |
commit | 2fe47d207900456996e041e9cce6e32dad01ea03 (patch) | |
tree | 95495716c81eaa816b823bbf56793d68427014de | |
parent | eef4672e4ec60ad811daf5c031a6d205c80ba2aa (diff) | |
download | libapr-2fe47d207900456996e041e9cce6e32dad01ea03.tar.gz |
Fix "unused variable" compiler warning in apr_file_dup2 and eliminate
local variable in apr_file_dup.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64436 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | file_io/unix/filedup.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/file_io/unix/filedup.c b/file_io/unix/filedup.c index cb7edde82..9395fb814 100644 --- a/file_io/unix/filedup.c +++ b/file_io/unix/filedup.c @@ -141,17 +141,12 @@ static apr_status_t _file_dup(apr_file_t **new_file, 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 |