|
|
@@ -153,7 +153,7 @@ static void test_sockets_allfunctions_basic_domain(int domain)
|
|
|
fail_unless(errno == EISCONN);
|
|
|
|
|
|
/* write from server to client */
|
|
|
- ret = write(s3, "test", 4);
|
|
|
+ ret = lwip_write(s3, "test", 4);
|
|
|
fail_unless(ret == 4);
|
|
|
|
|
|
ret = lwip_shutdown(s3, SHUT_WR);
|
|
|
@@ -330,7 +330,7 @@ static void test_sockets_msgapi_tcp(int domain)
|
|
|
|
|
|
/* set s2 to non-blocking, not inherited from listener */
|
|
|
opt = lwip_fcntl(s2, F_GETFL, 0);
|
|
|
- fail_unless(opt == 6);
|
|
|
+ fail_unless(opt == O_RDWR);
|
|
|
opt = O_NONBLOCK;
|
|
|
ret = lwip_fcntl(s2, F_SETFL, opt);
|
|
|
fail_unless(ret == 0);
|