From 613acd93c0dfdbf285e61c800f3f3595f5e8cc6d Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 8 Jun 2007 21:33:28 +0000 Subject: [PATCH] Minor change: don't define some local (unused) variables if LWIP_TCPIP_CORE_LOCKING=1 --- src/api/sockets.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/sockets.c b/src/api/sockets.c index 39909d0d..e2729e03 100644 --- a/src/api/sockets.c +++ b/src/api/sockets.c @@ -517,10 +517,12 @@ lwip_sendto(int s, const void *data, int size, unsigned int flags, struct sockaddr *to, socklen_t tolen) { struct lwip_socket *sock; - struct netbuf buf; struct ip_addr remote_addr; - u16_t remote_port; int err; +#if !LWIP_TCPIP_CORE_LOCKING + struct netbuf buf; + u16_t remote_port; +#endif sock = get_socket(s); if (!sock)