redefine many vars as "static"

See patch #10156
This commit is contained in:
Florian La Roche
2021-12-07 02:57:02 +01:00
committed by Simon Goldschmidt
parent 5ab46f82f9
commit 62ac0faad8
7 changed files with 28 additions and 28 deletions

View File

@@ -160,7 +160,7 @@ static struct stats_proto* shell_stat_proto_stats[] = {
&lwip_stats.tcp,
#endif
};
const size_t num_protostats = sizeof(shell_stat_proto_stats)/sizeof(struct stats_proto*);
static const size_t num_protostats = sizeof(shell_stat_proto_stats)/sizeof(struct stats_proto*);
static const char *stat_msgs_proto[] = {
" * transmitted ",

View File

@@ -31,7 +31,7 @@
#define SOCKET_EXAMPLES_RUN_PARALLEL 0
#endif
const u8_t cmpbuf[8] = {0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab};
static const u8_t cmpbuf[8] = {0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab};
/* a helper struct to ensure memory before/after fd_set is not touched */
typedef struct _xx