summaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-08 17:31:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-08 17:31:55 +0000
commitbd8f43dbab871d19484887556632af50749786b6 (patch)
treeaff74eaa70da2da4ea68915687eeb354df2f74da /coreutils/stty.c
parent9a9edf200b797a92380b634d57dec6cd9410919f (diff)
downloadbusybox-w32-bd8f43dbab871d19484887556632af50749786b6.tar.gz
busybox-w32-bd8f43dbab871d19484887556632af50749786b6.tar.bz2
busybox-w32-bd8f43dbab871d19484887556632af50749786b6.zip
few random readability enhansements. No code changes
Diffstat (limited to 'coreutils/stty.c')
-rw-r--r--coreutils/stty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 073de847b..d709bfc1e 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -514,8 +514,8 @@ int stty_main(int argc, char **argv)
514 device_name = file_name; 514 device_name = file_name;
515 fclose(stdin); 515 fclose(stdin);
516 xopen(device_name, O_RDONLY | O_NONBLOCK); 516 xopen(device_name, O_RDONLY | O_NONBLOCK);
517 if ((fdflags = fcntl(STDIN_FILENO, F_GETFL)) == -1 517 fdflags = fcntl(STDIN_FILENO, F_GETFL);
518 || fcntl(STDIN_FILENO, F_SETFL, fdflags & ~O_NONBLOCK) < 0) 518 if (fdflags == -1 || fcntl(STDIN_FILENO, F_SETFL, fdflags & ~O_NONBLOCK) < 0)
519 perror_on_device("%s: couldn't reset non-blocking mode"); 519 perror_on_device("%s: couldn't reset non-blocking mode");
520 } else { 520 } else {
521 device_name = bb_msg_standard_input; 521 device_name = bb_msg_standard_input;