mirror of
https://github.com/curl/curl.git
synced 2026-08-09 20:44:17 +03:00
Make some arrays of pointers const, too.
This commit is contained in:
parent
1ba47e7af9
commit
a28b32aa45
2 changed files with 5 additions and 6 deletions
|
|
@ -442,10 +442,6 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
|
|||
return result;
|
||||
}
|
||||
|
||||
static const char *ftpauth[]= {
|
||||
"SSL", "TLS", NULL
|
||||
};
|
||||
|
||||
/*
|
||||
* Curl_ftp_connect() should do everything that is to be considered a part of
|
||||
* the connection phase.
|
||||
|
|
@ -459,6 +455,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
|
|||
struct FTP *ftp;
|
||||
CURLcode result;
|
||||
int ftpcode, trynum;
|
||||
static const char * const ftpauth[] = {
|
||||
"SSL", "TLS", NULL
|
||||
};
|
||||
|
||||
ftp = (struct FTP *)malloc(sizeof(struct FTP));
|
||||
if(!ftp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue