X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fb25b48308752a7ea8f49085956536d2fc2ff5d4..d24438f85c6549479b7ca00e1096c1a7cde15e5b:/common/iso14443_crc.c?ds=sidebyside diff --git a/common/iso14443_crc.c b/common/iso14443_crc.c index d688bf71..555de7db 100644 --- a/common/iso14443_crc.c +++ b/common/iso14443_crc.c @@ -15,8 +15,8 @@ static unsigned short UpdateCrc14443(unsigned char ch, unsigned short *lpwCrc) return (*lpwCrc); } -static void ComputeCrc14443(int CrcType, BYTE *Data, int Length, - BYTE *TransmitFirst, BYTE *TransmitSecond) +static void ComputeCrc14443(int CrcType, unsigned char *Data, int Length, + unsigned char *TransmitFirst, unsigned char *TransmitSecond) { unsigned char chBlock; unsigned short wCrc=CrcType; @@ -29,7 +29,7 @@ static void ComputeCrc14443(int CrcType, BYTE *Data, int Length, if (CrcType == CRC_14443_B) wCrc = ~wCrc; /* ISO/IEC 13239 (formerly ISO/IEC 3309) */ - *TransmitFirst = (BYTE) (wCrc & 0xFF); - *TransmitSecond = (BYTE) ((wCrc >> 8) & 0xFF); + *TransmitFirst = (unsigned char) (wCrc & 0xFF); + *TransmitSecond = (unsigned char) ((wCrc >> 8) & 0xFF); return; }