diff options
author | markm <markm@FreeBSD.org> | 2001-11-30 21:06:38 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-11-30 21:06:38 +0000 |
commit | 19fd256fae7c15fbb63128196d5550a72c559ea8 (patch) | |
tree | 1caab024c94078fe45902c1c2f8f58e5bdb7d4f4 /crypto/telnet/arpa | |
parent | e92874bd103e4d5462fd2c0013b77afc3d52df05 (diff) | |
download | FreeBSD-src-19fd256fae7c15fbb63128196d5550a72c559ea8.zip FreeBSD-src-19fd256fae7c15fbb63128196d5550a72c559ea8.tar.gz |
Very large style makeover.
1) ANSIfy.
2) Clean up ifdefs so that
a) ones that never/always apply are appropriately either
fully removed, or just the #if junk is removed.
b) change #if defined(FOO) for appropiate values of FOO.
(currently AUTHENTICATION and ENCRYPTION)
3) WARNS=2 fixing
4) GC other unused stuff
This code can now be unifdef(1)ed to make non-crypto telnet.
Diffstat (limited to 'crypto/telnet/arpa')
-rw-r--r-- | crypto/telnet/arpa/telnet.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/telnet/arpa/telnet.h b/crypto/telnet/arpa/telnet.h index af85741..079119c 100644 --- a/crypto/telnet/arpa/telnet.h +++ b/crypto/telnet/arpa/telnet.h @@ -64,7 +64,7 @@ #define SYNCH 242 /* for telfunc calls */ #ifdef TELCMDS -char *telcmds[] = { +const char *telcmds[] = { "EOF", "SUSP", "ABORT", "EOR", "SE", "NOP", "DMARK", "BRK", "IP", "AO", "AYT", "EC", "EL", "GA", "SB", "WILL", "WONT", "DO", "DONT", "IAC", @@ -126,7 +126,7 @@ extern char *telcmds[]; #define NTELOPTS (1+TELOPT_NEW_ENVIRON) #ifdef TELOPTS -char *telopts[NTELOPTS+1] = { +const char *telopts[NTELOPTS+1] = { "BINARY", "ECHO", "RCP", "SUPPRESS GO AHEAD", "NAME", "STATUS", "TIMING MARK", "RCTE", "NAOL", "NAOP", "NAOCRD", "NAOHTS", "NAOHTD", "NAOFFD", "NAOVTS", @@ -226,7 +226,7 @@ char *telopts[NTELOPTS+1] = { 0 #ifdef SLC_NAMES -char *slc_names[] = { +const char *slc_names[] = { SLC_NAMELIST }; #else @@ -287,7 +287,7 @@ extern char *slc_names[]; #define AUTHTYPE_TEST 99 #ifdef AUTH_NAMES -char *authtype_names[] = { +const char *authtype_names[] = { "NULL", "KERBEROS_V4", "KERBEROS_V5", "SPX", "MINK", NULL, "SRA", 0 }; @@ -318,12 +318,12 @@ extern char *authtype_names[]; #define ENCTYPE_CNT 3 #ifdef ENCRYPT_NAMES -char *encrypt_names[] = { +const char *encrypt_names[] = { "IS", "SUPPORT", "REPLY", "START", "END", "REQUEST-START", "REQUEST-END", "ENC-KEYID", "DEC-KEYID", 0 }; -char *enctype_names[] = { +const char *enctype_names[] = { "ANY", "DES_CFB64", "DES_OFB64", 0 }; |