parent
ac6797e916
commit
d36e9d65a0
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue