summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2011-11-16 09:20:03 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2011-11-17 13:57:53 +0200
commite40bc80bf50f7ae30e7995abb026208ad6bf8b79 (patch)
tree941e308568f95c5fe797bea7bd2c7f635f8daa4f /tools
parent7232da34fa05730dff6ce2c82e32e18fa05121be (diff)
downloadbluez-e40bc80bf50f7ae30e7995abb026208ad6bf8b79.tar.gz
csr_bcsp: Fix missing errno attribution
do_command() is supposed to set errno if returning -1.
Diffstat (limited to 'tools')
-rw-r--r--tools/csr_bcsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/csr_bcsp.c b/tools/csr_bcsp.c
index df247a2cc..7bfaf5a90 100644
--- a/tools/csr_bcsp.c
+++ b/tools/csr_bcsp.c
@@ -219,6 +219,7 @@ static int do_command(uint16_t command, uint16_t seqnum, uint16_t varid, uint8_t
if (timeout++ > 5000) {
fprintf(stderr, "Operation timed out\n");
+ errno = ETIMEDOUT;
return -1;
}
}