mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-01 06:54:51 +00:00
Fixed compiler warnings (unused variables)
This commit is contained in:
parent
c2539dbc8c
commit
856e9ecb8c
@ -43,10 +43,8 @@
|
||||
static void
|
||||
udpecho_thread(void *arg)
|
||||
{
|
||||
static struct netconn *conn;
|
||||
static struct netbuf *buf;
|
||||
static ip_addr_t *addr;
|
||||
static unsigned short port;
|
||||
struct netconn *conn;
|
||||
struct netbuf *buf;
|
||||
char buffer[4096];
|
||||
err_t err;
|
||||
LWIP_UNUSED_ARG(arg);
|
||||
@ -58,8 +56,6 @@ udpecho_thread(void *arg)
|
||||
while (1) {
|
||||
err = netconn_recv(conn, &buf);
|
||||
if (err == ERR_OK) {
|
||||
addr = netbuf_fromaddr(buf);
|
||||
port = netbuf_fromport(buf);
|
||||
/* no need netconn_connect here, since the netbuf contains the address */
|
||||
if(netbuf_copy(buf, buffer, buf->p->tot_len) != buf->p->tot_len) {
|
||||
LWIP_DEBUGF(LWIP_DBG_ON, ("netbuf_copy failed\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user