mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08: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…
x
Reference in New Issue
Block a user