diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-07-21 02:08:17 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-07-21 02:08:17 +0000 |
commit | b465750041fc82c2633bdc5ea65de0ceda6a88b8 (patch) | |
tree | f90be2ba838cbe7717bcc1977610e783e487a359 /lib | |
parent | 37dc0fa519f8ef768d082bcaf6a3a2eb563f5cf3 (diff) |
Make the pointers of a few static const arrays const, too, for safety.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 6 | ||||
-rw-r--r-- | lib/ssh.c | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -705,7 +705,7 @@ static void state(struct connectdata *conn, { #if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) /* for debug purposes */ - static const char *names[]={ + static const char * const 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]; - static const char *mode[] = { "EPRT", "PORT", NULL }; + static const char * const mode[] = { "EPRT", "PORT", NULL }; int rc; int error; char *host=NULL; @@ -1246,7 +1246,7 @@ static CURLcode ftp_state_use_pasv(struct connectdata *conn) */ - static const char *mode[] = { "EPSV", "PASV", NULL }; + static const char * const mode[] = { "EPSV", "PASV", NULL }; int modeoff; #ifdef PF_INET6 @@ -252,7 +252,7 @@ static void state(struct connectdata *conn, sshstate state) { #if defined(CURLDEBUG) && !defined(CURL_DISABLE_VERBOSE_STRINGS) /* for debug purposes */ - static const char *names[] = { + static const char * const names[] = { "SSH_STOP", "SSH_S_STARTUP", "SSH_AUTHLIST", |