diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-03-04 14:31:16 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-03-04 14:31:16 +0000 |
commit | dbfc3ee2b91ed26eb00e85a32c715995f4fce41b (patch) | |
tree | 82605dba9b7a1d14c3e952af32bef2852d60703b /lib/sisfileheader.cpp | |
parent | b68ab4b0002aa0c59fdbbfee3076e35aeac44d68 (diff) | |
download | plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.gz plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.tar.bz2 plptools-dbfc3ee2b91ed26eb00e85a32c715995f4fce41b.zip |
Use plp standard types.
Fix copyright include.
Diffstat (limited to 'lib/sisfileheader.cpp')
-rw-r--r-- | lib/sisfileheader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisfileheader.cpp b/lib/sisfileheader.cpp index 3279c38..19724c3 100644 --- a/lib/sisfileheader.cpp +++ b/lib/sisfileheader.cpp @@ -29,11 +29,11 @@ const int OFF_NUMBER_OF_FILES = 26; const int OFF_INSTALLATION_DRIVE = 28; SisRC -SISFileHeader::fillFrom(uchar* buf, int* base, off_t len) +SISFileHeader::fillFrom(uint8_t* buf, int* base, off_t len) { if (*base + 68 > len) return SIS_TRUNCATED; - uchar* start = buf + *base; + uint8_t* start = buf + *base; m_buf = buf; m_uid1 = read32(start); if (logLevel >= 1) @@ -56,10 +56,10 @@ SISFileHeader::fillFrom(uchar* buf, int* base, off_t len) printf("Got uid3 = %08x\n", m_uid3); m_uid4 = read32(start + 12); // printf("Got uid4 = %08x\n", m_uid4); - uint16 crc1 = 0; + uint16_t crc1 = 0; for (int i = 0; i < 12; i += 2) crc1 = updateCrc(crc1, buf[*base + i]); - uint16 crc2 = 0; + uint16_t crc2 = 0; for (int i = 0; i < 12; i += 2) crc2 = updateCrc(crc2, buf[*base + i + 1]); if (logLevel >= 2) |