From c730a404d424cd4ec6f6b38d9c0adf95ba25dbb2 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 6 Jul 2017 20:25:41 +0200 Subject: [PATCH] Make ioctl(FIONBIO) take an int*, not a u32_t* to got the *nix way --- src/api/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index ace9ba13..5529b393 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -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);