Make ioctl(FIONBIO) take an int*, not a u32_t* to got the *nix way

This commit is contained in:
goldsimon 2017-07-06 20:25:41 +02:00
parent b8ecfe640c
commit c730a404d4

View File

@ -3281,7 +3281,7 @@ lwip_ioctl(int s, long cmd, void *argp)
case (long)FIONBIO:
val = 0;
if (argp && *(u32_t*)argp) {
if (argp && *(int*)argp) {
val = 1;
}
netconn_set_nonblocking(sock->conn, val);