aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2004-12-15 01:38:25 +0000
committerDan Fandrich <dan@coneharvesters.com>2004-12-15 01:38:25 +0000
commit1ba47e7af9edfa682faba73df8bf0dc240facb19 (patch)
tree38a53c7789ef88b169a8ee41642e702a2c34a904 /src/main.c
parent9359498b065a98361c25a9635aac1284ea261903 (diff)
Add 'const' to immutable arrays.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 001bbd40c..5bc466ffe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1191,7 +1191,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
long-name,
boolean whether it takes an additional argument
*/
- struct LongShort aliases[]= {
+ static const struct LongShort aliases[]= {
/* all these ones, starting with "*" or "$" as a short-option have *no*
short option to mention. */
{"*", "url", TRUE},
@@ -2036,7 +2036,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
const char *name;
int bitmask;
};
- struct feat feats[] = {
+ static const struct feat feats[] = {
{"AsynchDNS", CURL_VERSION_ASYNCHDNS},
{"Debug", CURL_VERSION_DEBUG},
{"GSS-Negotiate", CURL_VERSION_GSSNEGOTIATE},
@@ -4014,11 +4014,11 @@ char *
msdosify (char *file_name)
{
static char dos_name[PATH_MAX];
- static char illegal_chars_dos[] = ".+, ;=[]|<>\\\":?*";
- static char *illegal_chars_w95 = &illegal_chars_dos[8];
+ static const char illegal_chars_dos[] = ".+, ;=[]|<>\\\":?*";
+ static const char *illegal_chars_w95 = &illegal_chars_dos[8];
int idx, dot_idx;
char *s = file_name, *d = dos_name;
- char *illegal_aliens = illegal_chars_dos;
+ const char *illegal_aliens = illegal_chars_dos;
size_t len = sizeof (illegal_chars_dos) - 1;
int lfn = 0;