From: Dan Fandrich Date: Wed, 15 Dec 2004 03:03:45 +0000 (+0000) Subject: Make some arrays of pointers const, too. X-Git-Tag: upstream/7.37.1~11764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2fb9039bd6b09d75b0fb6f210bccf56fce995d7;p=platform%2Fupstream%2Fcurl.git Make some arrays of pointers const, too. --- diff --git a/src/main.c b/src/main.c index 5bc466f..87e43ff 100644 --- a/src/main.c +++ b/src/main.c @@ -309,7 +309,7 @@ struct getout { static void help(void) { int i; - static const char *helptext[]={ + static const char * const helptext[]={ "Usage: curl [options...] ", "Options: (H) means HTTP/HTTPS only, (F) means FTP only", " -a/--append Append to target file when uploading (F)", @@ -3662,10 +3662,10 @@ operate(struct Configurable *config, int argc, char *argv[]) if(retry) { if(!(config->conf&CONF_MUTE)) { - static const char *m[]={NULL, - "timeout", - "HTTP error", - "FTP error" + static const char * const m[]={NULL, + "timeout", + "HTTP error", + "FTP error" }; fprintf(stderr, "Transient problem: %s\n" "Will retry in %ld seconds. "