commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r826184 - in /commons/sandbox/runtime/trunk/src/main/native/os/win32: dir.c dirent.c
Date Sat, 17 Oct 2009 07:19:29 GMT
Author: mturk
Date: Sat Oct 17 07:19:28 2009
New Revision: 826184

URL: http://svn.apache.org/viewvc?rev=826184&view=rev
Log:
Fix compile warnings

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/dir.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/dirent.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/dir.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/dir.c?rev=826184&r1=826183&r2=826184&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/dir.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/dir.c Sat Oct 17 07:19:28 2009
@@ -103,7 +103,6 @@
         for (;;) {
             if (!readdir_r(dir, &ds, &dp)) {
                 if (dp) {
-                    int type;
                     if (*(dp->d_name) == '.' && (*(dp->d_name + 1) == '\0'
||
                                                 (*(dp->d_name + 1) == '.'  &&
                                                  *(dp->d_name + 2) == '\0'))) {

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/dirent.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/dirent.c?rev=826184&r1=826183&r2=826184&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/dirent.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/dirent.c Sat Oct 17 07:19:28 2009
@@ -181,7 +181,7 @@
         if (mblen == 0 || mblen > 1024)
             return GetLastError();
         entry->d_ino    = 0;
-        entry->d_type   = wfind.dwFileAttributes;
+        entry->d_type   = 0;
         entry->d_off    = dir->d_stat;
         entry->d_reclen = (unsigned short)(mblen - 1);
         *result = entry;



Mime
View raw message