]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - common/iso14443_crc.c
client/elf.h: Add missing Elf32_Phdr struct to compile under Mac OS X. client/flash...
[proxmark3-svn] / common / iso14443_crc.c
index d688bf710a5a84ca797fdc890f49d4656f6da66a..555de7db904e33a0d6eb2eb088ec4f09199fb123 100644 (file)
@@ -15,8 +15,8 @@ static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc)
     return (*lpwCrc);\r
 }\r
 \r
-static void ComputeCrc14443(int CrcType, BYTE *Data, int Length,\r
-           BYTE *TransmitFirst, BYTE *TransmitSecond)\r
+static void ComputeCrc14443(int CrcType, unsigned char *Data, int Length,\r
+           unsigned char *TransmitFirst, unsigned char *TransmitSecond)\r
 {\r
     unsigned char chBlock;\r
     unsigned short wCrc=CrcType;\r
@@ -29,7 +29,7 @@ static void ComputeCrc14443(int CrcType, BYTE *Data, int Length,
     if (CrcType == CRC_14443_B)\r
         wCrc = ~wCrc;                /* ISO/IEC 13239 (formerly ISO/IEC 3309) */\r
 \r
-    *TransmitFirst = (BYTE) (wCrc & 0xFF);\r
-    *TransmitSecond = (BYTE) ((wCrc >> 8) & 0xFF);\r
+    *TransmitFirst = (unsigned char) (wCrc & 0xFF);\r
+    *TransmitSecond = (unsigned char) ((wCrc >> 8) & 0xFF);\r
     return;\r
 }\r
Impressum, Datenschutz