summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-07 23:53:47 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-01-07 23:53:47 +0000
commitd50476969d3658eb385ddeeda1c6c6564267ec39 (patch)
tree75701319f01eaced534440a113d020b36496a640
parentc013e93217b652cce1538a250bc348d1c8c75fdb (diff)
Fix typo. we don't wand sizeof(sizeof(somethin)) (Rainer Keller <mail@rainerkeller.de>)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1957 e0336214-984f-0b4b-a45f-81c69e1f0ede
-rw-r--r--src/rfid_reader_openpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfid_reader_openpcd.c b/src/rfid_reader_openpcd.c
index 9f5517c..f439c04 100644
--- a/src/rfid_reader_openpcd.c
+++ b/src/rfid_reader_openpcd.c
@@ -95,7 +95,7 @@ static int openpcd_xcv(u_int8_t cmd, u_int8_t reg, u_int8_t val,
ret = openpcd_send_command(cmd, reg, val, len, data);
if (ret < 0)
return ret;
- if (ret < sizeof(sizeof(struct openpcd_hdr)))
+ if (ret < sizeof(struct openpcd_hdr))
return -EINVAL;
return openpcd_recv_reply();
personal git repositories of Harald Welte. Your mileage may vary