fix compiler warnings

git-svn-id: https://svn.gnumonks.org/trunk/librfid@2107 e0336214-984f-0b4b-a45f-81c69e1f0ede
This commit is contained in:
laforge 2008-05-24 13:46:39 +00:00
parent 544071c0f9
commit 5f5de66d10
1 changed files with 4 additions and 2 deletions

View File

@ -158,7 +158,7 @@ iso15693_read_block(struct rfid_layer2_handle *handle,
struct iso15693_response *rx_pkt;
struct iso15693_response_sec *rx_pkt_sec;
rx_pkt_sec = (struct iso15693_response *)&resp[0];
rx_pkt_sec = (struct iso15693_response_sec *)&resp[0];
rx_pkt = (struct iso15693_response *)&resp[0];
rx_err = (struct iso15693_err_resp *)&resp[0];
@ -410,7 +410,9 @@ start_of_ac_loop:
for (i = 0; i < num_slots; i++) {
rx_len = sizeof(resp);
memset(&resp, 0, rx_len);
ret = iso15693_transceive_acf(handle, (u_int8_t *) &acf, tx_len, &resp, &rx_len, &boc);
ret = iso15693_transceive_acf(handle,
(struct iso15693_anticol_cmd *) &acf,
tx_len, &resp, &rx_len, &boc);
if (ret == -ETIMEDOUT) {
//DEBUGP("no answer from vicc in slot %d\n", i);