1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #5249 from gebart/pr/newlib-readwrite-prototypes

sys/newlib: Update _read_r and _write_r to match newlib prototypes in reent.h
This commit is contained in:
Oleg Hahm 2016-04-06 11:14:52 +02:00
commit 5b386597c6

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;