1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

sys/newlib: Update _read_r and _write_r to match newlib prototypes in reent.h

This commit is contained in:
Joakim Nohlgård 2016-04-06 07:46:19 +02:00
parent 8ed19f5efe
commit bc5ededbbe

View File

@ -186,7 +186,7 @@ int _open_r(struct _reent *r, const char *name, int flags, int mode)
*
* @return TODO
*/
int _read_r(struct _reent *r, int fd, void *buffer, unsigned int count)
_ssize_t _read_r(struct _reent *r, int fd, void *buffer, size_t count)
{
(void)r;
(void)fd;
@ -208,7 +208,7 @@ int _read_r(struct _reent *r, int fd, void *buffer, unsigned int count)
*
* @return TODO
*/
int _write_r(struct _reent *r, int fd, const void *data, unsigned int count)
_ssize_t _write_r(struct _reent *r, int fd, const void *data, size_t count)
{
(void) r;
(void) fd;