summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:34:48 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2006-06-13 09:34:48 +0000
commit889f6a15061857fda1b16d396f615364db3e38e6 (patch)
tree0f4fef2e6fadaa87a2de5233876bd31ad484f4b3 /src
parent62465df4d60106c8db9bfbf429a6e614c2191c6d (diff)
patch introduces -ETIMEDOUT as an error return code in case of
timeout. (For *_close it's important to distinguish between 'real' errors and timeout.) (Henryk Ploetz) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1815 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r--src/rfid_asic_rc632.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c
index 803a09c..0d4a0c4 100644
--- a/src/rfid_asic_rc632.c
+++ b/src/rfid_asic_rc632.c
@@ -192,8 +192,7 @@ rc632_wait_idle(struct rfid_asic_handle *handle, u_int64_t timeout)
/* Abort after some timeout */
if (cycles > timeout*10/USLEEP_PER_CYCLE) {
- fprintf(stderr, "TIMEOUT!!\n");
- return -1;
+ return -ETIMEDOUT;
}
cycles++;
personal git repositories of Harald Welte. Your mileage may vary