Added 'const' to the string arrays
authorDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:16:53 +0000 (08:16 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Aug 2001 08:16:53 +0000 (08:16 +0000)
lib/arpa_telnet.h

index 1f1890fb71f6652b6567c18f4ad7a25a5bd5f4af..201b7bbc4d54e5cb122f7e5b841615221103d3fa 100644 (file)
@@ -39,7 +39,7 @@
 /*
  * The telnet options represented as strings
  */
-static char *telnetoptions[]=
+static const char *telnetoptions[]=
 {
   "BINARY",      "ECHO",           "RCP",           "SUPPRESS GO AHEAD",
   "NAME",        "STATUS"          "TIMING MARK",   "RCTE",
@@ -78,7 +78,7 @@ static char *telnetoptions[]=
 /*
  * Then those numbers represented as strings:
  */
-static char *telnetcmds[]=
+static const char *telnetcmds[]=
 {
   "EOF",  "SUSP",  "ABORT", "EOR",  "SE",
   "NOP",  "DMARK", "BRK",   "IP",   "AO",