Dmitry Gorbachev

- Fix warnings in host tools.
See issue #3539 for more details.

svn path=/trunk/; revision=34734
This commit is contained in:
Aleksey Bragin 2008-07-24 11:05:22 +00:00
parent 5032762531
commit face282d9f
2 changed files with 5 additions and 4 deletions

View file

@ -1694,8 +1694,7 @@ ULONG CCabinet::WriteFileToScratchStorage(PCFFILE_NODE FileNode)
return CAB_STATUS_INVALID_CAB;
}
*(unsigned char**)&CurrentIBuffer += BytesRead;
CurrentIBuffer = (unsigned char*)CurrentIBuffer + BytesRead;
CurrentIBufferSize += (USHORT)BytesRead;
if (CurrentIBufferSize == CAB_BLOCKSIZE)
@ -3573,8 +3572,8 @@ ULONG CCabinet::WriteDataBlock()
CurrentFolderNode->TotalFolderSize += (BytesWritten + sizeof(CFDATA));
CurrentFolderNode->Folder.DataBlockCount++;
*(unsigned char**)&CurrentOBuffer += DataNode->Data.CompSize;
CurrentOBufferSize -= DataNode->Data.CompSize;
CurrentOBuffer = (unsigned char*)CurrentOBuffer + DataNode->Data.CompSize;
CurrentOBufferSize -= DataNode->Data.CompSize;
LastBlockStart += DataNode->Data.UncompSize;

View file

@ -22,6 +22,8 @@ namespace System_
size_t i;
#if 0
// gettimeofday(&tm, 0);
#else
memset(&tm, 0, sizeof(tm));
#endif
for (i = 0; i < s_Entries.size(); i++)
{