mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 12:13:47 +00:00
apps/smtp: Make smtp_state_str/smtp_result_strs/base64_table static
These tables are only referenced in smtp.c, so make them static. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
07cc25a9df
commit
117d3abdf8
@ -194,7 +194,7 @@ enum smtp_session_state {
|
|||||||
|
|
||||||
#ifdef LWIP_DEBUG
|
#ifdef LWIP_DEBUG
|
||||||
/** State-to-string table for debugging */
|
/** State-to-string table for debugging */
|
||||||
const char *smtp_state_str[] = {
|
static const char *smtp_state_str[] = {
|
||||||
"SMTP_NULL",
|
"SMTP_NULL",
|
||||||
"SMTP_HELO",
|
"SMTP_HELO",
|
||||||
"SMTP_AUTH_PLAIN",
|
"SMTP_AUTH_PLAIN",
|
||||||
@ -209,7 +209,7 @@ const char *smtp_state_str[] = {
|
|||||||
"SMTP_CLOSED",
|
"SMTP_CLOSED",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *smtp_result_strs[] = {
|
static const char *smtp_result_strs[] = {
|
||||||
"SMTP_RESULT_OK",
|
"SMTP_RESULT_OK",
|
||||||
"SMTP_RESULT_ERR_UNKNOWN",
|
"SMTP_RESULT_ERR_UNKNOWN",
|
||||||
"SMTP_RESULT_ERR_CONNECT",
|
"SMTP_RESULT_ERR_CONNECT",
|
||||||
@ -881,7 +881,7 @@ smtp_dns_found(const char* hostname, const ip_addr_t *ipaddr, void *arg)
|
|||||||
#if SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN
|
#if SMTP_SUPPORT_AUTH_PLAIN || SMTP_SUPPORT_AUTH_LOGIN
|
||||||
|
|
||||||
/** Table 6-bit-index-to-ASCII used for base64-encoding */
|
/** Table 6-bit-index-to-ASCII used for base64-encoding */
|
||||||
const u8_t base64_table[] = {
|
static const u8_t base64_table[] = {
|
||||||
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
||||||
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
||||||
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
||||||
|
Loading…
Reference in New Issue
Block a user