Skip to content

Commit

Permalink
sys/newlib: Update _read_r and _write_r to match newlib prototypes in…
Browse files Browse the repository at this point in the history
… reent.h
  • Loading branch information
Joakim Nohlgård committed Apr 6, 2016
1 parent 8ed19f5 commit bc5eded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/newlib/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit bc5eded

Please sign in to comment.