diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2004-12-15 01:38:25 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2004-12-15 01:38:25 +0000 |
commit | 1ba47e7af9edfa682faba73df8bf0dc240facb19 (patch) | |
tree | 38a53c7789ef88b169a8ee41642e702a2c34a904 /lib/security.c | |
parent | 9359498b065a98361c25a9635aac1284ea261903 (diff) | |
download | curl-1ba47e7af9edfa682faba73df8bf0dc240facb19.tar.gz |
Add 'const' to immutable arrays.
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/security.c b/lib/security.c index e87a5144b..f34729b55 100644 --- a/lib/security.c +++ b/lib/security.c @@ -65,7 +65,7 @@ #define min(a, b) ((a) < (b) ? (a) : (b)) -static struct { +static const struct { enum protection_level level; const char *name; } level_names[] = { @@ -85,7 +85,7 @@ name_to_level(const char *name) return (enum protection_level)-1; } -static struct Curl_sec_client_mech *mechs[] = { +static const struct Curl_sec_client_mech *mechs[] = { #ifdef KRB5 /* not supported */ #endif @@ -400,7 +400,7 @@ int Curl_sec_login(struct connectdata *conn) { int ret; - struct Curl_sec_client_mech **m; + const struct Curl_sec_client_mech **m; ssize_t nread; struct SessionHandle *data=conn->data; int ftpcode; |