struct netif->hostname can be a const pointer

This commit is contained in:
goldsimon 2015-10-02 09:42:49 +02:00
parent 3312983b27
commit 91b6d45178

View File

@ -254,7 +254,7 @@ struct netif {
#endif /* LWIP_IPV6_DHCP6 */
#if LWIP_NETIF_HOSTNAME
/* the hostname for this netif, NULL is a valid value */
char* hostname;
const char* hostname;
#endif /* LWIP_NETIF_HOSTNAME */
#if LWIP_CHECKSUM_CTRL_PER_NETIF
u16_t chksum_flags;