apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r592976 - /apr/apr/trunk/file_io/win32/open.c
Date Thu, 08 Nov 2007 00:32:21 GMT
Author: wrowe
Date: Wed Nov  7 16:32:21 2007
New Revision: 592976

URL: http://svn.apache.org/viewvc?rev=592976&view=rev
Log:
Fix two typos, I had continued to simplify this throughout
it's development and left in this cruft.

Modified:
    apr/apr/trunk/file_io/win32/open.c

Modified: apr/apr/trunk/file_io/win32/open.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/open.c?rev=592976&r1=592975&r2=592976&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/open.c (original)
+++ apr/apr/trunk/file_io/win32/open.c Wed Nov  7 16:32:21 2007
@@ -222,8 +222,6 @@
 }
 
 #if APR_HAS_UNICODE_FS
-    IF_WIN_OS_IS_UNICODE
-    {
 static apr_status_t make_sparse_file(apr_file_t *file)
 {
     BY_HANDLE_FILE_INFORMATION info;
@@ -464,13 +462,12 @@
 
 #if APR_HAS_UNICODE_FS
     if ((apr_os_level >= APR_WIN_2000) && ((*new)->flags & APR_FOPEN_SPARSE))
{
-            if ((rv = make_sparse_file(*new)) != APR_SUCCESS)
-                /* The great mystery; do we close the file and return an error?
-                 * Do we add a new APR_INCOMPLETE style error saying opened, but
-                 * NOTSPARSE?  For now let's simply mark the file as not-sparse.
-                 */
-                (*new)->flags &= ~APR_FOPEN_SPARSE;
-        }
+        if ((rv = make_sparse_file(*new)) != APR_SUCCESS)
+            /* The great mystery; do we close the file and return an error?
+             * Do we add a new APR_INCOMPLETE style error saying opened, but
+             * NOTSPARSE?  For now let's simply mark the file as not-sparse.
+             */
+            (*new)->flags &= ~APR_FOPEN_SPARSE;
     }
     else
 #endif



Mime
View raw message