]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Make some arrays of pointers const, too.
authorDan Fandrich <dan@coneharvesters.com>
Wed, 15 Dec 2004 02:32:04 +0000 (02:32 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 15 Dec 2004 02:32:04 +0000 (02:32 +0000)
lib/ftp.c
lib/security.c

index 74a73ac66042d115b4f82038267244576697ec11..729d70eb1a980e21c35a749e8a1a94168fa93d1b 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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)
index f34729b5585baee4be0a5fff47e40e1480f7d9f3..64c55b3ba5a4ed34260b641f7889c8eeefea9a22 100644 (file)
@@ -85,7 +85,7 @@ name_to_level(const char *name)
   return (enum protection_level)-1;
 }
 
-static const struct Curl_sec_client_mech *mechs[] = {
+static const struct Curl_sec_client_mech * const mechs[] = {
 #ifdef KRB5
   /* not supported */
 #endif
@@ -400,7 +400,7 @@ int
 Curl_sec_login(struct connectdata *conn)
 {
   int ret;
-  const struct Curl_sec_client_mech **m;
+  const struct Curl_sec_client_mech * const *m;
   ssize_t nread;
   struct SessionHandle *data=conn->data;
   int ftpcode;