From dbfc3ee2b91ed26eb00e85a32c715995f4fce41b Mon Sep 17 00:00:00 2001 From: Daniel Brahneborg Date: Mon, 4 Mar 2002 14:31:16 +0000 Subject: Use plp standard types. Fix copyright include. --- lib/sisfilerecord.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/sisfilerecord.cpp') diff --git a/lib/sisfilerecord.cpp b/lib/sisfilerecord.cpp index baa5776..e7dd007 100644 --- a/lib/sisfilerecord.cpp +++ b/lib/sisfilerecord.cpp @@ -26,12 +26,12 @@ #include SisRC -SISFileRecord::fillFrom(uchar* buf, int* base, off_t len, SISFile* sisFile) +SISFileRecord::fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile) { if (*base + 28 + 4 * 2 > len) return SIS_TRUNCATED; - uchar* p = buf + *base; + uint8_t* p = buf + *base; int size = 0; m_flags = read32(p); if (logLevel >= 2) @@ -59,8 +59,8 @@ SISFileRecord::fillFrom(uchar* buf, int* base, off_t len, SISFile* sisFile) switch (m_flags) { case 0: // Only one file. - m_fileLengths = new uint32[1]; - m_filePtrs = new uint32[1]; + m_fileLengths = new uint32_t[1]; + m_filePtrs = new uint32_t[1]; m_fileLengths[0] = read32(p + size); m_filePtrs[0] = read32(p + size + 4); size += 8; @@ -80,8 +80,8 @@ SISFileRecord::fillFrom(uchar* buf, int* base, off_t len, SISFile* sisFile) case 1: // One file per language. { int n = sisFile->m_header.m_nlangs; - m_fileLengths = new uint32[n]; - m_filePtrs = new uint32[n]; + m_fileLengths = new uint32_t[n]; + m_filePtrs = new uint32_t[n]; if (*base + size + n * 8 > len) return SIS_TRUNCATED; for (int i = 0; i < n; ++i) -- cgit v1.2.3