From e40bc80bf50f7ae30e7995abb026208ad6bf8b79 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Wed, 16 Nov 2011 09:20:03 -0400 Subject: [PATCH] csr_bcsp: Fix missing errno attribution do_command() is supposed to set errno if returning -1. --- tools/csr_bcsp.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.47.3