summaryrefslogtreecommitdiff
path: root/zen/file_id_def.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
commit1845c028b8cb8496d1d78f0da738120e1c31401a (patch)
treeadf9fb436aea09be367aef8ed3b6cdbf6a46e34c /zen/file_id_def.h
parent6.7 (diff)
downloadFreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.gz
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.bz2
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.zip
6.8
Diffstat (limited to 'zen/file_id_def.h')
-rw-r--r--zen/file_id_def.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/zen/file_id_def.h b/zen/file_id_def.h
index 0608aacd..daadd391 100644
--- a/zen/file_id_def.h
+++ b/zen/file_id_def.h
@@ -27,21 +27,21 @@ typedef ULONGLONG FileIndex;
typedef std::pair<DeviceId, FileIndex> FileId;
inline
-FileId extractFileID(const BY_HANDLE_FILE_INFORMATION& fileInfo)
+FileId extractFileId(const BY_HANDLE_FILE_INFORMATION& fileInfo)
{
- ULARGE_INTEGER uint = {};
- uint.HighPart = fileInfo.nFileIndexHigh;
- uint.LowPart = fileInfo.nFileIndexLow;
+ ULARGE_INTEGER fileIndex = {};
+ fileIndex.HighPart = fileInfo.nFileIndexHigh;
+ fileIndex.LowPart = fileInfo.nFileIndexLow;
- return fileInfo.dwVolumeSerialNumber != 0 && uint.QuadPart != 0 ?
- FileId(fileInfo.dwVolumeSerialNumber, uint.QuadPart) : FileId();
+ return fileInfo.dwVolumeSerialNumber != 0 && fileIndex.QuadPart != 0 ?
+ FileId(fileInfo.dwVolumeSerialNumber, fileIndex.QuadPart) : FileId();
}
inline
-FileId extractFileID(DWORD dwVolumeSerialNumber, ULARGE_INTEGER fileId)
+FileId extractFileId(DWORD volumeSerialNumber, ULONGLONG fileIndex)
{
- return dwVolumeSerialNumber != 0 && fileId.QuadPart != 0 ?
- FileId(dwVolumeSerialNumber, fileId.QuadPart) : FileId();
+ return volumeSerialNumber != 0 && fileIndex != 0 ?
+ FileId(volumeSerialNumber, fileIndex) : FileId();
}
assert_static(sizeof(FileId().first ) == sizeof(BY_HANDLE_FILE_INFORMATION().dwVolumeSerialNumber));
@@ -58,7 +58,7 @@ typedef decltype(impl::StatDummy::st_ino) FileIndex;
typedef std::pair<DeviceId, FileIndex> FileId;
inline
-FileId extractFileID(const struct ::stat& fileInfo)
+FileId extractFileId(const struct ::stat& fileInfo)
{
return fileInfo.st_dev != 0 && fileInfo.st_ino != 0 ?
FileId(fileInfo.st_dev, fileInfo.st_ino) : FileId();
bgstack15