diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-29 23:26:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-29 23:26:52 +0000 |
commit | f60d62638bce2e3f9476aace88a25e0fea607a5f (patch) | |
tree | 7b54629ab923f642854d6c1a9c7c31c7c519bd37 /miscutils/microcom.c | |
parent | 64e619c0c8e638acb30ba31fa106a449da28ca13 (diff) | |
download | busybox-w32-f60d62638bce2e3f9476aace88a25e0fea607a5f.tar.gz busybox-w32-f60d62638bce2e3f9476aace88a25e0fea607a5f.tar.bz2 busybox-w32-f60d62638bce2e3f9476aace88a25e0fea607a5f.zip |
small code shrink
Diffstat (limited to 'miscutils/microcom.c')
-rw-r--r-- | miscutils/microcom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 5928569d5..e097dc437 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
@@ -56,12 +56,11 @@ int microcom_main(int argc, char **argv) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | // open device | 58 | // open device |
59 | sfd = open(argv[0], O_RDWR | O_NDELAY); | 59 | sfd = open(argv[0], O_RDWR); |
60 | if (sfd < 0) { | 60 | if (sfd < 0) { |
61 | bb_perror_msg("can't open device"); | 61 | bb_perror_msg("can't open device"); |
62 | goto unlock_and_exit; | 62 | goto unlock_and_exit; |
63 | } | 63 | } |
64 | fcntl(sfd, F_SETFL, O_RDWR); // why? | ||
65 | 64 | ||
66 | // put stdin to "raw mode", handle one character at a time | 65 | // put stdin to "raw mode", handle one character at a time |
67 | tcgetattr(STDIN_FILENO, &tio0); | 66 | tcgetattr(STDIN_FILENO, &tio0); |