libc: newlib: libc-hooks: Consistently use const void* as arg to write

write() function is not supposed to change buffer passed to it, so
propagate const pointer param to all write-like functions used/defined
in this file.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2018-10-19 10:36:45 +03:00 committed by Carles Cufí
commit 52aa8061c0
2 changed files with 6 additions and 5 deletions

View file

@ -25,7 +25,7 @@
__syscall int _zephyr_read(char *buf, int nbytes);
__syscall int _zephyr_write(char *buf, int nbytes);
__syscall int _zephyr_write(const void *buf, int nbytes);
#else
/* Minimal libc */