Fix a printf issue. (#474)

Added missing return statements to stdio
This commit is contained in:
dora38 2017-10-24 06:55:11 +09:00 committed by Johan Kanflo
parent ac6797e916
commit d36e9d65a0

View file

@ -103,7 +103,7 @@ __attribute__((weak)) long _write_r(struct _reent *r, int fd, const char *ptr, i
return lwip_write(fd, ptr, len);
}
if (fd == r->_stdout->_file) {
current_stdout_write_r(r, fd, ptr, len);
return current_stdout_write_r(r, fd, ptr, len);
}
r->_errno = EBADF;
return -1;
@ -138,7 +138,7 @@ __attribute__((weak)) long _read_r( struct _reent *r, int fd, char *ptr, int len
return lwip_read(fd, ptr, len);
}
if (fd == r->_stdin->_file) {
_read_stdin_r(r, fd, ptr, len);
return _read_stdin_r(r, fd, ptr, len);
}
r->_errno = EBADF;
return -1;