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;
 }