diff options
author | AG <contact@grandville.net> | 2015-10-26 22:28:24 +0100 |
---|---|---|
committer | AG <contact@grandville.net> | 2015-10-26 22:28:24 +0100 |
commit | d8378f071e54512f41e076547357f663125bea7f (patch) | |
tree | e16689b8deb30786b430b70cd98b4467871d8106 /lib/backupstore | |
parent | 961d5e1de35644c5c709e719f9023dbbac475f50 (diff) |
min & max are not from std namespace
u_int8_t is unsigned char
strings.h file is missing
errors generated by deprecated functions are now hidden (C4996 warning)
Diffstat (limited to 'lib/backupstore')
-rw-r--r-- | lib/backupstore/BackupStoreFile.cpp | 4 | ||||
-rw-r--r-- | lib/backupstore/BackupStoreRefCountDatabase.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/backupstore/BackupStoreFile.cpp b/lib/backupstore/BackupStoreFile.cpp index 99562685..5ceefe90 100644 --- a/lib/backupstore/BackupStoreFile.cpp +++ b/lib/backupstore/BackupStoreFile.cpp @@ -304,7 +304,7 @@ void BackupStoreFile::VerifyStream::Write(const void *pBuffer, int NBytes, int T size_t BytesLeftInCurrentUnit = mCurrentUnitSize - mCurrentUnitData.GetSize(); // Add however many bytes are needed/available to the current unit's buffer. - BytesToAdd = std::min(BytesLeftInCurrentUnit, (size_t)NBytes); + BytesToAdd = min(BytesLeftInCurrentUnit, (size_t)NBytes); } // We must make progress here, or we could have infinite recursion. @@ -502,7 +502,7 @@ void BackupStoreFile::VerifyStream::Close(bool CloseCopyStream) CollectInBufferStream* pPreviousBuffer = mCurrentBufferIsAlternate ? &mCurrentUnitData : &mAlternateData; - int64_t BytesFromCurrentBuffer = std::min(mBlockIndexSize, + int64_t BytesFromCurrentBuffer = min(mBlockIndexSize, (int64_t)pCurrentBuffer->GetSize()); int64_t BytesFromPreviousBuffer = mBlockIndexSize - BytesFromCurrentBuffer; diff --git a/lib/backupstore/BackupStoreRefCountDatabase.cpp b/lib/backupstore/BackupStoreRefCountDatabase.cpp index 8b51b70a..24c7b38e 100644 --- a/lib/backupstore/BackupStoreRefCountDatabase.cpp +++ b/lib/backupstore/BackupStoreRefCountDatabase.cpp @@ -346,7 +346,7 @@ int BackupStoreRefCountDatabase::ReportChangesTo(BackupStoreRefCountDatabase& rO int64_t MaxNewObjectId = GetLastObjectIDUsed(); for (int64_t ObjectID = BACKUPSTORE_ROOT_DIRECTORY_ID; - ObjectID < std::max(MaxOldObjectId, MaxNewObjectId); + ObjectID < max(MaxOldObjectId, MaxNewObjectId); ObjectID++) { typedef BackupStoreRefCountDatabase::refcount_t refcount_t; |