diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2011-11-16 09:20:03 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-17 13:57:53 +0200 |
commit | e40bc80bf50f7ae30e7995abb026208ad6bf8b79 (patch) | |
tree | 941e308568f95c5fe797bea7bd2c7f635f8daa4f /tools | |
parent | 7232da34fa05730dff6ce2c82e32e18fa05121be (diff) | |
download | bluez-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.c | 1 |
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; } } |