fix compiling sockets.c for SYS_LIGHTWEIGHT_PROT==0

This commit is contained in:
goldsimon 2018-04-19 08:23:10 +02:00
parent ef3073aaf9
commit d320b27a5f

View File

@ -376,11 +376,11 @@ sock_inc_used_locked(struct lwip_sock *sock)
static void
done_socket(struct lwip_sock *sock)
{
SYS_ARCH_DECL_PROTECT(lev);
int freed = 0;
int is_tcp = 0;
struct netconn *conn = NULL;
union lwip_sock_lastdata lastdata;
SYS_ARCH_DECL_PROTECT(lev);
LWIP_ASSERT("sock != NULL", sock != NULL);
SYS_ARCH_PROTECT(lev);