From 2ed5413e247ffb9ccf31a91835aa1c24a7ee6911 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 8dde990e..5bdd5a23 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, const char *name) #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));