Fixed compiler warnings (unused variables)

This commit is contained in:
Simon Goldschmidt 2014-02-26 22:00:03 +01:00
parent c2539dbc8c
commit 856e9ecb8c

View File

@ -43,10 +43,8 @@
static void static void
udpecho_thread(void *arg) udpecho_thread(void *arg)
{ {
static struct netconn *conn; struct netconn *conn;
static struct netbuf *buf; struct netbuf *buf;
static ip_addr_t *addr;
static unsigned short port;
char buffer[4096]; char buffer[4096];
err_t err; err_t err;
LWIP_UNUSED_ARG(arg); LWIP_UNUSED_ARG(arg);
@ -58,8 +56,6 @@ udpecho_thread(void *arg)
while (1) { while (1) {
err = netconn_recv(conn, &buf); err = netconn_recv(conn, &buf);
if (err == ERR_OK) { if (err == ERR_OK) {
addr = netbuf_fromaddr(buf);
port = netbuf_fromport(buf);
/* no need netconn_connect here, since the netbuf contains the address */ /* no need netconn_connect here, since the netbuf contains the address */
if(netbuf_copy(buf, buffer, buf->p->tot_len) != buf->p->tot_len) { if(netbuf_copy(buf, buffer, buf->p->tot_len) != buf->p->tot_len) {
LWIP_DEBUGF(LWIP_DBG_ON, ("netbuf_copy failed\n")); LWIP_DEBUGF(LWIP_DBG_ON, ("netbuf_copy failed\n"));