From: Denis Vlasenko Date: Sat, 29 Sep 2007 23:26:52 +0000 (-0000) Subject: small code shrink X-Git-Tag: 1_8_0~113 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f60d62638bce2e3f9476aace88a25e0fea607a5f;p=oweals%2Fbusybox.git small code shrink --- 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) } // 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);