Skip to content
Snippets Groups Projects
Commit dd41682a authored by rswindell's avatar rswindell
Browse files

Resolve GCC warning: enumeration value ‘CTERM_EMULATION_ANSI_BBS’ not handled in switch

parent 26c396ca
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen)
/* sub-option terminated */
if(option==TELNET_TERM_TYPE && telnet_cmd[3]==TELNET_TERM_SEND) {
char buf[32];
const char *termtype = "ANSI";
const char *termtype;
switch(cterm->emulation) {
case CTERM_EMULATION_PETASCII:
termtype = "PETSCII";
......@@ -167,6 +167,9 @@ BYTE* telnet_interpret(BYTE* inbuf, int inlen, BYTE* outbuf, int *outlen)
case CTERM_EMULATION_ATASCII:
termtype = "ATASCII";
break;
default:
termtype = "ANSI";
break;
}
int len=sprintf(buf,"%c%c%c%c%s%c%c"
,TELNET_IAC,TELNET_SB
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment