aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sisfilerecord.cpp
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-04 14:31:16 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-04 14:31:16 +0000
commitdbfc3ee2b91ed26eb00e85a32c715995f4fce41b (patch)
tree82605dba9b7a1d14c3e952af32bef2852d60703b /lib/sisfilerecord.cpp
parentb68ab4b0002aa0c59fdbbfee3076e35aeac44d68 (diff)
downloadplptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.gz
plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.bz2
plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.zip
Use plp standard types.
Fix copyright include.
Diffstat (limited to 'lib/sisfilerecord.cpp')
-rw-r--r--lib/sisfilerecord.cpp12
1 files changed, 6 insertions, 6 deletions
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 <stdio.h>
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)