net/pkt: Eliminate a compile error due to missing include and also a warning.
This commit is contained in:
parent
59a5c24739
commit
97434ac5e5
@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* net/pkt/pkt_conn.c
|
||||
*
|
||||
* Copyright (C) 2014, 2016 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2014, 2016-2017 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Large parts of this file were leveraged from uIP logic:
|
||||
@ -43,13 +43,13 @@
|
||||
#include <nuttx/config.h>
|
||||
#if defined(CONFIG_NET) && defined(CONFIG_NET_PKT)
|
||||
|
||||
#include <semaphore.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <arch/irq.h>
|
||||
|
||||
#include <nuttx/semaphore.h>
|
||||
#include <nuttx/net/netconfig.h>
|
||||
#include <nuttx/net/net.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
|
@ -65,8 +65,6 @@
|
||||
|
||||
FAR struct net_driver_s *pkt_find_device(FAR struct pkt_conn_s *conn)
|
||||
{
|
||||
FAR struct net_driver_s *dev;
|
||||
|
||||
/* REVISIT: This is bogus. A better network device lookup is needed. */
|
||||
|
||||
return netdev_findbyname("eth0");
|
||||
|
Loading…
Reference in New Issue
Block a user