Loading lib/arpa_telnet.h +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ /* * The telnet options represented as strings */ static const char *telnetoptions[]= static const char * const telnetoptions[]= { "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME", "STATUS", "TIMING MARK", "RCTE", Loading Loading @@ -78,7 +78,7 @@ static const char *telnetoptions[]= /* * Then those numbers represented as strings: */ static const char *telnetcmds[]= static const char * const telnetcmds[]= { "EOF", "SUSP", "ABORT", "EOR", "SE", "NOP", "DMARK", "BRK", "IP", "AO", Loading lib/parsedate.c +9 −6 Original line number Diff line number Diff line Loading @@ -86,11 +86,14 @@ static time_t Curl_parsedate(const char *date); static const char *wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; static const char *weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday", static const char * const wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; static const char * const weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }; static const char *month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; static const char * const month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; struct tzinfo { const char *name; Loading Loading @@ -153,7 +156,7 @@ static const struct tzinfo tz[]= { static int checkday(char *check, size_t len) { int i; const char **what; const char * const *what; bool found= FALSE; if(len > 3) what = &weekday[0]; Loading @@ -172,7 +175,7 @@ static int checkday(char *check, size_t len) static int checkmonth(char *check) { int i; const char **what; const char * const *what; bool found= FALSE; what = &month[0]; Loading lib/version.c +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ char *curl_version(void) /* data for curl_version_info */ static const char *protocols[] = { static const char * const protocols[] = { #ifndef CURL_DISABLE_FTP "ftp", #endif Loading Loading
lib/arpa_telnet.h +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ /* * The telnet options represented as strings */ static const char *telnetoptions[]= static const char * const telnetoptions[]= { "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME", "STATUS", "TIMING MARK", "RCTE", Loading Loading @@ -78,7 +78,7 @@ static const char *telnetoptions[]= /* * Then those numbers represented as strings: */ static const char *telnetcmds[]= static const char * const telnetcmds[]= { "EOF", "SUSP", "ABORT", "EOR", "SE", "NOP", "DMARK", "BRK", "IP", "AO", Loading
lib/parsedate.c +9 −6 Original line number Diff line number Diff line Loading @@ -86,11 +86,14 @@ static time_t Curl_parsedate(const char *date); static const char *wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; static const char *weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday", static const char * const wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; static const char * const weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" }; static const char *month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; static const char * const month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; struct tzinfo { const char *name; Loading Loading @@ -153,7 +156,7 @@ static const struct tzinfo tz[]= { static int checkday(char *check, size_t len) { int i; const char **what; const char * const *what; bool found= FALSE; if(len > 3) what = &weekday[0]; Loading @@ -172,7 +175,7 @@ static int checkday(char *check, size_t len) static int checkmonth(char *check) { int i; const char **what; const char * const *what; bool found= FALSE; what = &month[0]; Loading
lib/version.c +1 −1 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ char *curl_version(void) /* data for curl_version_info */ static const char *protocols[] = { static const char * const protocols[] = { #ifndef CURL_DISABLE_FTP "ftp", #endif Loading