Fixed #109 - sys_write() (#110)

removes incorrect use of arguments
This commit is contained in:
Philipp Dreßen 2019-06-01 09:17:34 +02:00 committed by Stefan Lankes
parent 423cb0e80e
commit 324a23d3b1
1 changed files with 7 additions and 1 deletions

View File

@ -282,7 +282,13 @@ ssize_t sys_write(int fd, const char* buf, size_t len)
}
if (fd > 2)
i = socket_recv(s, &i, sizeof(i));
{
int temp = socket_recv(s, &i, sizeof(i));
if (temp < 0)
{
return (ssize_t) temp;
}
}
spinlock_irqsave_unlock(&lwip_lock);