commit | 6e0c5d6d1e93a70780686f956d1feea5de2655f5 | [log] [tgz] |
---|---|---|
author | Matt Johnston <matt@codeconstruct.com.au> | Tue Sep 10 16:03:13 2024 +0800 |
committer | Matt Johnston <matt@codeconstruct.com.au> | Thu Dec 12 11:35:42 2024 +0800 |
tree | 5a77ad5e65a7ddcacb5e38fe8981e8110a54e819 | |
parent | 7c51d8316f53bc53ed8d7e0b3d6fb877e59376ba [diff] |
serial: Fix const correctness of write stub Change-Id: If76a2f81cdd120c93a4b9bcc1bb08da573d3a755 Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
diff --git a/serial.c b/serial.c index 681dc57..77b6bae 100644 --- a/serial.c +++ b/serial.c
@@ -17,7 +17,7 @@ #include <poll.h> #include <unistd.h> #else -static const size_t write(int fd, void *buf, size_t len) +static const size_t write(int fd, const void *buf, size_t len) { return -1; }