fix up stats_display which was added in previous commit

This commit is contained in:
jani 2004-03-26 12:47:57 +00:00
parent d36b723056
commit d27448da8a
3 changed files with 11 additions and 2 deletions

View File

@ -47,7 +47,7 @@ stats_init(void)
{ {
memset(&lwip_stats, 0, sizeof(struct stats_)); memset(&lwip_stats, 0, sizeof(struct stats_));
} }
#if LWIP_STATS_DISPLAY
void void
stats_display_proto(struct stats_proto *proto, char *name) stats_display_proto(struct stats_proto *proto, char *name)
{ {
@ -109,6 +109,6 @@ stats_display(void)
} }
} }
#endif /* LWIP_STATS_DISPLAY */
#endif /* LWIP_STATS */ #endif /* LWIP_STATS */

View File

@ -356,6 +356,10 @@ a lot of data that needs to be copied, this should be set high. */
#if LWIP_STATS #if LWIP_STATS
#ifndef LWIP_STATS_DISPLAY
#define LWIP_STATS_DISPLAY 0
#endif
#ifndef LINK_STATS #ifndef LINK_STATS
#define LINK_STATS 1 #define LINK_STATS 1
#endif #endif

View File

@ -144,6 +144,11 @@ void stats_init(void);
#define LINK_STATS_INC(x) #define LINK_STATS_INC(x)
#endif #endif
/* Display of statistics */
#if LWIP_STATS_DISPLAY
void stats_display(void);
#endif
#endif /* __LWIP_STATS_H__ */ #endif /* __LWIP_STATS_H__ */