summaryrefslogtreecommitdiffstats
path: root/libk3bdevice/k3bcrc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libk3bdevice/k3bcrc.cpp')
-rw-r--r--libk3bdevice/k3bcrc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libk3bdevice/k3bcrc.cpp b/libk3bdevice/k3bcrc.cpp
index f533ae7..e382f9b 100644
--- a/libk3bdevice/k3bcrc.cpp
+++ b/libk3bdevice/k3bcrc.cpp
@@ -18,7 +18,7 @@
#include <k3bdebug.h>
-static Q_UINT16 g_x25Table[1<<8] = {
+static TQ_UINT16 g_x25Table[1<<8] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
@@ -54,7 +54,7 @@ static Q_UINT16 g_x25Table[1<<8] = {
};
-Q_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, Q_UINT16 crc )
+TQ_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, TQ_UINT16 crc )
{
while( len-- ) {
crc = (crc<<8) ^ g_x25Table[(crc>>8) ^ (*message++)];
@@ -64,13 +64,13 @@ Q_UINT16 K3bDevice::calcX25( unsigned char* message, unsigned int len, Q_UINT16
}
-bool K3bDevice::checkQCrc( unsigned char* subdata )
+bool K3bDevice::checkTQCrc( unsigned char* subdata )
{
// Red Book for some reason inverts the CRC bytes
subdata[10] ^= 0xff;
subdata[11] ^= 0xff;
- Q_UINT16 crc = calcX25( subdata, 12 );
+ TQ_UINT16 crc = calcX25( subdata, 12 );
// correct the data
subdata[10] ^= 0xff;