mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Make ioctl(FIONBIO) take an int*, not a u32_t* to got the *nix way
This commit is contained in:
parent
b8ecfe640c
commit
c730a404d4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user