Remove IAC debug output

This commit is contained in:
Andrew Pamment 2018-02-05 11:52:01 +10:00
parent 6219d836ee
commit f5cd8ddb03
3 changed files with 0 additions and 12 deletions

View File

@ -425,7 +425,6 @@ char s_getchar() {
switch (c) {
case IAC_WILL:
fprintf(stderr, "IAC WILL %d\n", d);
if (d == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -434,7 +433,6 @@ char s_getchar() {
}
break;
case IAC_WONT:
fprintf(stderr, "IAC WONT %d\n", d);
if (d == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;
@ -443,7 +441,6 @@ char s_getchar() {
}
break;
case IAC_DO:
fprintf(stderr, "IAC DO %d\n", d);
if (d == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -452,7 +449,6 @@ char s_getchar() {
}
break;
case IAC_DONT:
fprintf(stderr, "IAC DONT %d\n", d);
if (d == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;

View File

@ -371,7 +371,6 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
} else if (gotiac == 2) {
switch (iac) {
case IAC_WILL:
fprintf(stderr, "IAC WILL %d\n", c);
if (c == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -380,7 +379,6 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
}
break;
case IAC_WONT:
fprintf(stderr, "IAC WONT %d\n", c);
if (c == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;
@ -389,7 +387,6 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
}
break;
case IAC_DO:
fprintf(stderr, "IAC DO %d\n", c);
if (c == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -398,7 +395,6 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
}
break;
case IAC_DONT:
fprintf(stderr, "IAC DONT %d\n", c);
if (c == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;

View File

@ -190,7 +190,6 @@ int doIO(ZModem *zm) {
if (buffer[j+1] == IAC_WILL || buffer[j+1] == IAC_WONT || buffer[j+1] == IAC_DO || buffer[j+1] == IAC_DONT) {
switch (buffer[j+1]) {
case IAC_WILL:
fprintf(stderr, "IAC WILL %d\n", buffer[j+2]);
if (buffer[j+2] == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -199,7 +198,6 @@ int doIO(ZModem *zm) {
}
break;
case IAC_WONT:
fprintf(stderr, "IAC WONT %d\n", buffer[j+2]);
if (buffer[j+2] == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;
@ -208,7 +206,6 @@ int doIO(ZModem *zm) {
}
break;
case IAC_DO:
fprintf(stderr, "IAC DO %d\n", buffer[j+2]);
if (buffer[j+2] == 0) {
if (telnet_bin_mode != 1) {
telnet_bin_mode = 1;
@ -217,7 +214,6 @@ int doIO(ZModem *zm) {
}
break;
case IAC_DONT:
fprintf(stderr, "IAC DONT %d\n", buffer[j+2]);
if (buffer[j+2] == 0) {
if (telnet_bin_mode != 0) {
telnet_bin_mode = 0;