mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-12 01:29:28 +00:00
fix compilation when LWIP_STATS is 0
This commit is contained in:
parent
5a8fd52c3d
commit
52c01f0a10
|
@ -419,6 +419,7 @@ com_acpt(struct command *com)
|
|||
return ESUCCESS;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
#if LWIP_STATS
|
||||
static s8_t
|
||||
com_stat(struct command *com)
|
||||
{
|
||||
|
@ -436,6 +437,7 @@ com_stat(struct command *com)
|
|||
|
||||
return ESUCCESS;
|
||||
}
|
||||
#endif
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
static s8_t
|
||||
com_send(struct command *com)
|
||||
|
@ -879,9 +881,11 @@ parse_command(struct command *com, u32_t len)
|
|||
} else if (strncmp((const char *)buffer, "clos", 4) == 0) {
|
||||
com->exec = com_clos;
|
||||
com->nargs = 1;
|
||||
#if LWIP_STATS
|
||||
} else if (strncmp((const char *)buffer, "stat", 4) == 0) {
|
||||
com->exec = com_stat;
|
||||
com->nargs = 0;
|
||||
#endif
|
||||
} else if (strncmp((const char *)buffer, "send", 4) == 0) {
|
||||
com->exec = com_send;
|
||||
com->nargs = 2;
|
||||
|
|
Loading…
Reference in New Issue
Block a user