httpd: make global variables static

Signed-off-by: goldsimon <goldsimon@gmx.de>
This commit is contained in:
Mike Kleshov 2017-12-18 19:57:07 +01:00 committed by goldsimon
parent 50a5d85f45
commit db68c6df6a

View File

@ -151,7 +151,7 @@ typedef struct {
u8_t shtml; u8_t shtml;
} default_filename; } default_filename;
const default_filename g_psDefaultFilenames[] = { static const default_filename g_psDefaultFilenames[] = {
{"/index.shtml", 1 }, {"/index.shtml", 1 },
{"/index.ssi", 1 }, {"/index.ssi", 1 },
{"/index.shtm", 1 }, {"/index.shtm", 1 },
@ -310,29 +310,29 @@ static void http_continue(void *connection);
#if LWIP_HTTPD_SSI #if LWIP_HTTPD_SSI
/* SSI insert handler function pointer. */ /* SSI insert handler function pointer. */
tSSIHandler g_pfnSSIHandler; static tSSIHandler g_pfnSSIHandler;
#if !LWIP_HTTPD_SSI_RAW #if !LWIP_HTTPD_SSI_RAW
int g_iNumTags; static int g_iNumTags;
const char **g_ppcTags; static const char **g_ppcTags;
#endif /* !LWIP_HTTPD_SSI_RAW */ #endif /* !LWIP_HTTPD_SSI_RAW */
#define LEN_TAG_LEAD_IN 5 #define LEN_TAG_LEAD_IN 5
const char *const g_pcTagLeadIn = "<!--#"; static const char *const g_pcTagLeadIn = "<!--#";
#define LEN_TAG_LEAD_OUT 3 #define LEN_TAG_LEAD_OUT 3
const char *const g_pcTagLeadOut = "-->"; static const char *const g_pcTagLeadOut = "-->";
#endif /* LWIP_HTTPD_SSI */ #endif /* LWIP_HTTPD_SSI */
#if LWIP_HTTPD_CGI #if LWIP_HTTPD_CGI
/* CGI handler information */ /* CGI handler information */
const tCGI *g_pCGIs; static const tCGI *g_pCGIs;
int g_iNumCGIs; static int g_iNumCGIs;
int http_cgi_paramcount; static int http_cgi_paramcount;
#define http_cgi_params hs->params #define http_cgi_params hs->params
#define http_cgi_param_vals hs->param_vals #define http_cgi_param_vals hs->param_vals
#elif LWIP_HTTPD_CGI_SSI #elif LWIP_HTTPD_CGI_SSI
char *http_cgi_params[LWIP_HTTPD_MAX_CGI_PARAMETERS]; /* Params extracted from the request URI */ static char *http_cgi_params[LWIP_HTTPD_MAX_CGI_PARAMETERS]; /* Params extracted from the request URI */
char *http_cgi_param_vals[LWIP_HTTPD_MAX_CGI_PARAMETERS]; /* Values for each extracted param */ static char *http_cgi_param_vals[LWIP_HTTPD_MAX_CGI_PARAMETERS]; /* Values for each extracted param */
#endif /* LWIP_HTTPD_CGI */ #endif /* LWIP_HTTPD_CGI */
#if LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED #if LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED