use const char for name pointers in display functions

This commit is contained in:
goldsimon 2011-06-07 19:32:20 +00:00 committed by goldsimon
parent 88bf9b2380
commit a45b1bad35

View File

@ -69,7 +69,7 @@ void stats_init(void)
#if LWIP_STATS_DISPLAY
void
stats_display_proto(struct stats_proto *proto, char *name)
stats_display_proto(struct stats_proto *proto, const char *name)
{
LWIP_PLATFORM_DIAG(("\n%s\n\t", name));
LWIP_PLATFORM_DIAG(("xmit: %"STAT_COUNTER_F"\n\t", proto->xmit));
@ -110,7 +110,7 @@ stats_display_igmp(struct stats_igmp *igmp)
#if MEM_STATS || MEMP_STATS
void
stats_display_mem(struct stats_mem *mem, char *name)
stats_display_mem(struct stats_mem *mem, const char *name)
{
LWIP_PLATFORM_DIAG(("\nMEM %s\n\t", name));
LWIP_PLATFORM_DIAG(("avail: %"U32_F"\n\t", (u32_t)mem->avail));