← Commit list

f60d62638

Denis Vlasenko
Denis Vlasenko
2007-09-29
FAILED Duration: 23s

Subject

small code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/microcom.c+1 -2
@@ -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);