diff --git a/src/include/lwip/netif.h b/src/include/lwip/netif.h index 837645b9..1fa79df3 100644 --- a/src/include/lwip/netif.h +++ b/src/include/lwip/netif.h @@ -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;