projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e619c
)
small code shrink
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 29 Sep 2007 23:26:52 +0000
(23:26 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 29 Sep 2007 23:26:52 +0000
(23:26 -0000)
miscutils/microcom.c
patch
|
blob
|
history
diff --git
a/miscutils/microcom.c
b/miscutils/microcom.c
index 5928569d56d488a7ab8847dd9398b38f1a66aa1e..e097dc4374006ec9241a6ad96785b080cf197076 100644
(file)
--- 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);