1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

Make some arrays of pointers const, too.

This commit is contained in:
Dan Fandrich 2004-12-15 03:03:45 +00:00
parent a28b32aa45
commit f2fb9039bd

View File

@ -309,7 +309,7 @@ struct getout {
static void help(void) static void help(void)
{ {
int i; int i;
static const char *helptext[]={ static const char * const helptext[]={
"Usage: curl [options...] <url>", "Usage: curl [options...] <url>",
"Options: (H) means HTTP/HTTPS only, (F) means FTP only", "Options: (H) means HTTP/HTTPS only, (F) means FTP only",
" -a/--append Append to target file when uploading (F)", " -a/--append Append to target file when uploading (F)",
@ -3662,10 +3662,10 @@ operate(struct Configurable *config, int argc, char *argv[])
if(retry) { if(retry) {
if(!(config->conf&CONF_MUTE)) { if(!(config->conf&CONF_MUTE)) {
static const char *m[]={NULL, static const char * const m[]={NULL,
"timeout", "timeout",
"HTTP error", "HTTP error",
"FTP error" "FTP error"
}; };
fprintf(stderr, "Transient problem: %s\n" fprintf(stderr, "Transient problem: %s\n"
"Will retry in %ld seconds. " "Will retry in %ld seconds. "