mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Trivial cleanup
This commit is contained in:
@@ -214,17 +214,18 @@ static int macnet_txavail(FAR struct net_driver_s *dev);
|
|||||||
|
|
||||||
#if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6)
|
#if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6)
|
||||||
static int macnet_addmac(FAR struct net_driver_s *dev,
|
static int macnet_addmac(FAR struct net_driver_s *dev,
|
||||||
FAR const uint8_t *mac);
|
FAR const uint8_t *mac);
|
||||||
#ifdef CONFIG_NET_IGMP
|
#ifdef CONFIG_NET_IGMP
|
||||||
static int macnet_rmmac(FAR struct net_driver_s *dev,
|
static int macnet_rmmac(FAR struct net_driver_s *dev,
|
||||||
FAR const uint8_t *mac);
|
FAR const uint8_t *mac);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NET_ICMPv6
|
#ifdef CONFIG_NET_ICMPv6
|
||||||
static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv);
|
static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NETDEV_IOCTL
|
#ifdef CONFIG_NETDEV_IOCTL
|
||||||
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd, long arg);
|
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
|
||||||
|
unsigned long arg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -1359,7 +1360,8 @@ static void macnet_ipv6multicast(FAR struct macnet_driver_s *priv)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NETDEV_IOCTL
|
#ifdef CONFIG_NETDEV_IOCTL
|
||||||
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd, long arg)
|
static int macnet_ioctl(FAR struct net_driver_s *dev, int cmd,
|
||||||
|
unsigned long arg)
|
||||||
{
|
{
|
||||||
FAR struct macnet_driver_s *priv = (FAR struct macnet_driver_s *)dev->d_private;
|
FAR struct macnet_driver_s *priv = (FAR struct macnet_driver_s *)dev->d_private;
|
||||||
int ret = -EINVAL;
|
int ret = -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user