From 91b6d4517898db874d34b04a78a5946e993caea5 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 2 Oct 2015 09:42:49 +0200 Subject: [PATCH] struct netif->hostname can be a const pointer --- src/include/lwip/netif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;