diff options
author | ploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-03-20 00:16:22 +0000 |
---|---|---|
committer | ploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2007-03-20 00:16:22 +0000 |
commit | 9a8dbae5c77a0277a8c52610ebb113bf3a151a1d (patch) | |
tree | 319b38ba0c861a49e2a140d5010b5277fb0c488e /src/rfid_reader_cm5121.c | |
parent | 1c1b42a7c2eb13306999d18bed4a7f1f7b89fd1b (diff) |
unsigned int -> size_t in some appropriate places.
Fixes segfaults on x86_64
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1984 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src/rfid_reader_cm5121.c')
-rw-r--r-- | src/rfid_reader_cm5121.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rfid_reader_cm5121.c b/src/rfid_reader_cm5121.c index 9587272..1514551 100644 --- a/src/rfid_reader_cm5121.c +++ b/src/rfid_reader_cm5121.c @@ -67,7 +67,7 @@ int Write1ByteToReg(struct rfid_asic_transport_handle *rath, { unsigned char sndbuf[SENDBUF_LEN]; unsigned char rcvbuf[RECVBUF_LEN]; - unsigned int retlen = RECVBUF_LEN; + size_t retlen = RECVBUF_LEN; sndbuf[0] = 0x20; sndbuf[1] = 0x00; @@ -96,7 +96,7 @@ static int Read1ByteFromReg(struct rfid_asic_transport_handle *rath, { unsigned char sndbuf[SENDBUF_LEN]; unsigned char recvbuf[RECVBUF_LEN]; - unsigned int retlen = sizeof(recvbuf); + size_t retlen = sizeof(recvbuf); sndbuf[0] = 0x20; sndbuf[1] = 0x00; @@ -124,7 +124,7 @@ static int ReadNBytesFromFIFO(struct rfid_asic_transport_handle *rath, { unsigned char sndbuf[SENDBUF_LEN]; unsigned char recvbuf[0x7f]; - unsigned int retlen = sizeof(recvbuf); + size_t retlen = sizeof(recvbuf); sndbuf[0] = 0x20; sndbuf[1] = 0x00; @@ -153,7 +153,7 @@ static int WriteNBytesToFIFO(struct rfid_asic_transport_handle *rath, { unsigned char sndbuf[SENDBUF_LEN]; unsigned char recvbuf[0x7f]; - unsigned int retlen = sizeof(recvbuf); + size_t retlen = sizeof(recvbuf); sndbuf[0] = 0x20; sndbuf[1] = 0x00; @@ -302,7 +302,7 @@ static int cm5121_enable_rc632(struct rfid_asic_transport_handle *rath) { unsigned char tx_buf[1] = { 0x01 }; unsigned char rx_buf[64]; - unsigned int rx_len = sizeof(rx_buf); + size_t rx_len = sizeof(rx_buf); PC_to_RDR_Escape(rath->data, tx_buf, 1, rx_buf, &rx_len); |