commit | f60d62638bce2e3f9476aace88a25e0fea607a5f | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 29 23:26:52 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 29 23:26:52 2007 +0000 |
tree | 7b54629ab923f642854d6c1a9c7c31c7c519bd37 | |
parent | 64e619c0c8e638acb30ba31fa106a449da28ca13 [diff] [blame] |
small code shrink
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 5928569..e097dc4 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c
@@ -56,12 +56,11 @@ } // open device - sfd = open(argv[0], O_RDWR | O_NDELAY); + sfd = open(argv[0], O_RDWR); if (sfd < 0) { bb_perror_msg("can't open device"); goto unlock_and_exit; } - fcntl(sfd, F_SETFL, O_RDWR); // why? // put stdin to "raw mode", handle one character at a time tcgetattr(STDIN_FILENO, &tio0);