summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-09-11 19:58:00 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2005-09-11 19:58:00 +0000
commit242b57ecd7e2b967822e6a4d74ca3acfc5880c21 (patch)
treeaefe7a6bdbeb303380496887e1300f1fe5d6709a
parent3897fabc5c94f7041c95a13ad04d2e32c944c1f1 (diff)
Some cosmetic changes (Juergen Heinzl)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1422 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--include/rfid/rfid_asic_rc632.h4
-rw-r--r--openct-escape.c1
-rw-r--r--rfid_asic_rc632.c2
-rw-r--r--rfid_asic_rc632_14443a.c2
-rw-r--r--rfid_reader_cm5121.c11
5 files changed, 10 insertions, 10 deletions
diff --git a/include/rfid/rfid_asic_rc632.h b/include/rfid/rfid_asic_rc632.h
index 4aabde2..94345eb 100644
--- a/include/rfid/rfid_asic_rc632.h
+++ b/include/rfid/rfid_asic_rc632.h
@@ -23,7 +23,7 @@ struct rfid_asic_rc632_transport {
struct rfid_asic_handle;
-struct iso14443a_atqua;
+struct iso14443a_atqa;
struct iso14443a_anticol_cmd;
struct rfid_asic_rc632 {
@@ -137,7 +137,7 @@ int
rc632_register_dump(struct rfid_asic_handle *handle, unsigned char *buf);
-//struct rfid_asic_handle * rc632_open(struct rc632_transport *transport, void *data);
+struct rfid_asic_handle * rc632_open(struct rfid_asic_transport_handle *th);
extern struct rfid_asic rc632;
diff --git a/openct-escape.c b/openct-escape.c
index 32bc123..60f60b7 100644
--- a/openct-escape.c
+++ b/openct-escape.c
@@ -59,7 +59,6 @@ static int init()
{
unsigned char buf[0x3f];
unsigned char atr[64];
- unsigned
int rc;
h = ct_reader_connect(0);
diff --git a/rfid_asic_rc632.c b/rfid_asic_rc632.c
index b77050f..3f7cd11 100644
--- a/rfid_asic_rc632.c
+++ b/rfid_asic_rc632.c
@@ -610,7 +610,7 @@ rc632_iso14443a_transcieve_sf(struct rfid_asic_handle *handle,
return 0;
}
-/* trasncieve regular frame */
+/* transcieve regular frame */
static int
rc632_iso14443a_transcieve(struct rfid_asic_handle *handle,
const unsigned char *tx_buf, unsigned int tx_len,
diff --git a/rfid_asic_rc632_14443a.c b/rfid_asic_rc632_14443a.c
index d6c0358..53297d2 100644
--- a/rfid_asic_rc632_14443a.c
+++ b/rfid_asic_rc632_14443a.c
@@ -287,7 +287,7 @@ rc632_iso14443a_transcieve_sf(struct rfid_asic_handle *handle,
return 0;
}
-/* trasncieve regular frame */
+/* transcieve regular frame */
static int
rc632_iso14443a_transcieve(struct rfid_asic_handle *handle,
const unsigned char *tx_buf, unsigned int tx_len,
diff --git a/rfid_reader_cm5121.c b/rfid_reader_cm5121.c
index d77192c..c8f13c5 100644
--- a/rfid_reader_cm5121.c
+++ b/rfid_reader_cm5121.c
@@ -186,13 +186,14 @@ static int cm5121_transcieve_sf(struct rfid_reader_handle *rh,
unsigned char cmd, struct iso14443a_atqa *atqa)
{
return rh->ah->asic->priv.rc632.fn.iso14443a.transcieve_sf(rh->ah,
- cmd,
- (unsigned char *) atqa);
+ cmd,
+ atqa);
}
static int
-cm5121_transcieve_acf(struct rfid_reader_handle *rh, struct iso14443a_anticol_cmd *cmd,
- unsigned int *bit_of_col)
+cm5121_transcieve_acf(struct rfid_reader_handle *rh,
+ struct iso14443a_anticol_cmd *cmd,
+ unsigned int *bit_of_col)
{
return rh->ah->asic->priv.rc632.fn.iso14443a.transcieve_acf(rh->ah,
cmd, bit_of_col);
@@ -236,7 +237,7 @@ static int cm5121_enable_rc632(struct rfid_asic_transport_handle *rath)
unsigned int rx_len = sizeof(rx_buf);
PC_to_RDR_Escape(rath->data, tx_buf, 1, rx_buf, &rx_len);
- printf("received %d bytes from 01 command\n", rx_len);
+ printf("received %u bytes from 01 command\n", rx_len);
return 0;
}
personal git repositories of Harald Welte. Your mileage may vary