File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 8
8
#include <stdlib.h>
9
9
#include <string.h>
10
10
#include <fcntl.h>
11
- #include <termios.h>
12
11
#include <poll.h>
13
12
#include <errno.h>
14
13
@@ -252,14 +251,6 @@ main(int argc, char **argv) {
252
251
if (pass ) raw ("PASS %s\r\n" , pass );
253
252
if (inic ) raw ("%s\r\n" , inic );
254
253
255
- struct termios tp , save ;
256
-
257
- tcgetattr (STDIN_FILENO , & tp );
258
- save = tp ;
259
- tp .c_cc [VERASE ] = 127 ;
260
-
261
- if (tcsetattr (STDIN_FILENO , TCSANOW , & tp ) < 0 ) return 2 ;
262
-
263
254
struct pollfd fds [2 ];
264
255
fds [0 ].fd = STDIN_FILENO ;
265
256
fds [1 ].fd = conn ;
@@ -278,7 +269,6 @@ main(int argc, char **argv) {
278
269
279
270
if (fds [1 ].revents & POLLIN ) {
280
271
int rc = handle_server_message ();
281
- /* Has the server closed the connection? */
282
272
if (rc != 0 ) {
283
273
if (rc == -2 ) return_code = EXIT_FAILURE ;
284
274
goto end ;
@@ -293,7 +283,5 @@ main(int argc, char **argv) {
293
283
}
294
284
295
285
end :
296
- if (tcsetattr (STDIN_FILENO , TCSANOW , & save ) < 0 ) return 2 ;
297
-
298
286
return return_code ;
299
287
}
You can’t perform that action at this time.
0 commit comments