summaryrefslogtreecommitdiffstats
path: root/tools/csr_bcsp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:32:44 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-07-26 13:32:44 +0000
commitb102348e988e4abc5d579ce13c067ce2c885aaf7 (patch)
treef7df67ce818aa8720f956171765889684c528ee1 /tools/csr_bcsp.c
parentabaf87668c896d8cebcfa1081eec195cd0008740 (diff)
Fix declared with attribute warn_unused_result errors
Diffstat (limited to 'tools/csr_bcsp.c')
-rw-r--r--tools/csr_bcsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/csr_bcsp.c b/tools/csr_bcsp.c
index 77766114..29a60bf9 100644
--- a/tools/csr_bcsp.c
+++ b/tools/csr_bcsp.c
@@ -136,7 +136,8 @@ int csr_open_bcsp(char *device)
void put_uart(uint8_t ch)
{
- write(fd, &ch, 1);
+ if (write(fd, &ch, 1) < 0)
+ fprintf(stderr, "UART write error\n");
}
uint8_t get_uart(uint8_t *ch)