From d50476969d3658eb385ddeeda1c6c6564267ec39 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 7 Jan 2007 23:53:47 +0000 Subject: Fix typo. we don't wand sizeof(sizeof(somethin)) (Rainer Keller ) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1957 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_reader_openpcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3