netif_alloc_client_data_id: only present if LWIP_NUM_NETIF_CLIENT_DATA

In contrast to netif_get_client_data, netif_alloc_client_data_id() is only
available if LWIP_NUM_NETIF_CLIENT_DATA > 0, not for DHCP etc.

This is correct in netif.c but wrong in netif.h
This commit is contained in:
goldsimon 2018-02-14 07:19:46 +01:00
parent 731336223f
commit e926779510

View File

@ -214,7 +214,9 @@ typedef err_t (*netif_mld_mac_filter_fn)(struct netif *netif,
#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */ #endif /* LWIP_IPV6 && LWIP_IPV6_MLD */
#if LWIP_DHCP || LWIP_AUTOIP || LWIP_IGMP || LWIP_IPV6_MLD || (LWIP_NUM_NETIF_CLIENT_DATA > 0) #if LWIP_DHCP || LWIP_AUTOIP || LWIP_IGMP || LWIP_IPV6_MLD || (LWIP_NUM_NETIF_CLIENT_DATA > 0)
#if LWIP_NUM_NETIF_CLIENT_DATA > 0
u8_t netif_alloc_client_data_id(void); u8_t netif_alloc_client_data_id(void);
#endif
/** @ingroup netif_cd /** @ingroup netif_cd
* Set client data. Obtain ID from netif_alloc_client_data_id(). * Set client data. Obtain ID from netif_alloc_client_data_id().
*/ */