summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-06-15 23:00:13 (GMT)
committerNico Weber <thakis@chromium.org>2014-06-15 23:00:13 (GMT)
commitf6f86d38c09e7caa2e386ce132a63960480ea48b (patch)
treeed0115719d1ae38cac097cbc786d7c20a93ef08b
parentb503fdc5367de37c8db42442de511c82a2d35399 (diff)
downloadNinja-f6f86d38c09e7caa2e386ce132a63960480ea48b.zip
Ninja-f6f86d38c09e7caa2e386ce132a63960480ea48b.tar.gz
Ninja-f6f86d38c09e7caa2e386ce132a63960480ea48b.tar.bz2
s/hFind/find_handle/
-rw-r--r--src/disk_interface.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc
index 6437761..50a2d97 100644
--- a/src/disk_interface.cc
+++ b/src/disk_interface.cc
@@ -86,10 +86,10 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
bool quiet) {
// FindExInfoBasic is 30% faster than FindExInfoStandard.
WIN32_FIND_DATAA ffd;
- HANDLE hFind = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic, &ffd,
- FindExSearchNameMatch, NULL, 0);
+ HANDLE find_handle = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic,
+ &ffd, FindExSearchNameMatch, NULL, 0);
- if (hFind == INVALID_HANDLE_VALUE) {
+ if (find_handle == INVALID_HANDLE_VALUE) {
DWORD err = GetLastError();
if (err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND)
return true;
@@ -106,8 +106,8 @@ bool StatAllFilesInDir(const string& dir, map<string, TimeStamp>* stamps,
transform(lowername.begin(), lowername.end(), lowername.begin(), ::tolower);
stamps->insert(make_pair(lowername,
TimeStampFromFileTime(ffd.ftLastWriteTime)));
- } while (FindNextFileA(hFind, &ffd));
- FindClose(hFind);
+ } while (FindNextFileA(find_handle, &ffd));
+ FindClose(find_handle);
return true;
}
#endif // _WIN32