From a45b1bad355d6d154c5ce71cdc03604c1d79afdb Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 7 Jun 2011 19:32:20 +0000 Subject: [PATCH] use const char for name pointers in display functions --- src/core/stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/stats.c b/src/core/stats.c index 69f97d41..8ea82497 100644 --- a/src/core/stats.c +++ b/src/core/stats.c @@ -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));