mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:13:33 +03:00
Made some const arrays static to avoid unnecessary stack usage.
This commit is contained in:
parent
dca3564cfb
commit
4a2f0fb2be
5 changed files with 7 additions and 7 deletions
|
|
@ -705,7 +705,7 @@ static void state(struct connectdata *conn,
|
|||
{
|
||||
#if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
/* for debug purposes */
|
||||
const char *names[]={
|
||||
static const char *names[]={
|
||||
"STOP",
|
||||
"WAIT220",
|
||||
"AUTH",
|
||||
|
|
@ -862,7 +862,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
|
|||
char hbuf[NI_MAXHOST];
|
||||
struct sockaddr *sa=(struct sockaddr *)&ss;
|
||||
char tmp[1024];
|
||||
const char *mode[] = { "EPRT", "PORT", NULL };
|
||||
static const char *mode[] = { "EPRT", "PORT", NULL };
|
||||
int rc;
|
||||
int error;
|
||||
char *host=NULL;
|
||||
|
|
@ -1246,7 +1246,7 @@ static CURLcode ftp_state_use_pasv(struct connectdata *conn)
|
|||
|
||||
*/
|
||||
|
||||
const char *mode[] = { "EPSV", "PASV", NULL };
|
||||
static const char *mode[] = { "EPSV", "PASV", NULL };
|
||||
int modeoff;
|
||||
|
||||
#ifdef PF_INET6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue