1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Make some arrays of pointers const, too.

This commit is contained in:
Dan Fandrich 2004-12-15 02:32:04 +00:00
parent 1ba47e7af9
commit a28b32aa45
2 changed files with 5 additions and 6 deletions

View File

@ -442,10 +442,6 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
return result; return result;
} }
static const char *ftpauth[]= {
"SSL", "TLS", NULL
};
/* /*
* Curl_ftp_connect() should do everything that is to be considered a part of * Curl_ftp_connect() should do everything that is to be considered a part of
* the connection phase. * the connection phase.
@ -459,6 +455,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
struct FTP *ftp; struct FTP *ftp;
CURLcode result; CURLcode result;
int ftpcode, trynum; int ftpcode, trynum;
static const char * const ftpauth[] = {
"SSL", "TLS", NULL
};
ftp = (struct FTP *)malloc(sizeof(struct FTP)); ftp = (struct FTP *)malloc(sizeof(struct FTP));
if(!ftp) if(!ftp)

View File

@ -85,7 +85,7 @@ name_to_level(const char *name)
return (enum protection_level)-1; return (enum protection_level)-1;
} }
static const struct Curl_sec_client_mech *mechs[] = { static const struct Curl_sec_client_mech * const mechs[] = {
#ifdef KRB5 #ifdef KRB5
/* not supported */ /* not supported */
#endif #endif
@ -400,7 +400,7 @@ int
Curl_sec_login(struct connectdata *conn) Curl_sec_login(struct connectdata *conn)
{ {
int ret; int ret;
const struct Curl_sec_client_mech **m; const struct Curl_sec_client_mech * const *m;
ssize_t nread; ssize_t nread;
struct SessionHandle *data=conn->data; struct SessionHandle *data=conn->data;
int ftpcode; int ftpcode;