You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2003/03/06 10:24:18 UTC
cvs commit: apr/file_io/unix open.c
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);