svn commit: trunk/busybox/miscutils
vda at busybox.net
vda at busybox.net
Sat Sep 29 16:26:52 PDT 2007
Author: vda
Date: 2007-09-29 16:26:52 -0700 (Sat, 29 Sep 2007)
New Revision: 20134
Log:
small code shrink
Modified:
trunk/busybox/miscutils/microcom.c
Changeset:
Modified: trunk/busybox/miscutils/microcom.c
===================================================================
--- trunk/busybox/miscutils/microcom.c 2007-09-29 22:52:25 UTC (rev 20133)
+++ trunk/busybox/miscutils/microcom.c 2007-09-29 23:26:52 UTC (rev 20134)
@@ -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);
More information about the busybox-cvs
mailing list