mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-12 01:29:28 +00:00
make some char-pointer-arrays const, add default cases on all switches
This commit is contained in:
parent
d8f5406985
commit
bafc19addd
|
@ -101,7 +101,7 @@ quit: quits."NEWLINE"";
|
||||||
|
|
||||||
#define STAT_NUM (((5 + UDP_STATS) * 12) + (4) + (11 * 4) + (2 * 3))
|
#define STAT_NUM (((5 + UDP_STATS) * 12) + (4) + (11 * 4) + (2 * 3))
|
||||||
|
|
||||||
static char *stat_msgs[STAT_NUM] = {
|
static const char *stat_msgs[STAT_NUM] = {
|
||||||
"Link level * transmitted ",
|
"Link level * transmitted ",
|
||||||
" * received ",
|
" * received ",
|
||||||
" forwarded ",
|
" forwarded ",
|
||||||
|
@ -232,7 +232,7 @@ static char *stat_msgs[STAT_NUM] = {
|
||||||
" * errors "
|
" * errors "
|
||||||
};
|
};
|
||||||
|
|
||||||
static char *stat_formats[STAT_NUM] = {
|
static const char *stat_formats[STAT_NUM] = {
|
||||||
U16_F, /* link xmit */
|
U16_F, /* link xmit */
|
||||||
U16_F, /* link recv */
|
U16_F, /* link recv */
|
||||||
U16_F, /* link fw */
|
U16_F, /* link fw */
|
||||||
|
@ -1366,6 +1366,9 @@ error(s8_t err, struct netconn *conn)
|
||||||
case ETOOMANY:
|
case ETOOMANY:
|
||||||
sendstr("## Too many arguments to command given"NEWLINE, conn);
|
sendstr("## Too many arguments to command given"NEWLINE, conn);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
LWIP_ASSERT("Unknown error", 0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user