Minor change: don't define some local (unused) variables if LWIP_TCPIP_CORE_LOCKING=1

This commit is contained in:
goldsimon 2007-06-08 21:33:28 +00:00
parent 837cb42679
commit 613acd93c0

View File

@ -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)