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:
parent
eb6f37d753
commit
52aa8061c0
2 changed files with 6 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue