1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

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 5b02bc429e
commit b65e733395

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);