aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-17 15:52:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-17 15:52:02 +0000
commitec27feb04589d46233802f686559fb5f532fb2df (patch)
tree3c6f8dd683c840fd4855f86e6956db38ad9320bb /util-linux
parentc84520d73dbe100449d84241ec0df9d02ee0fc4d (diff)
downloadbusybox-ec27feb04589d46233802f686559fb5f532fb2df.tar.gz
init: code readability enhancements; very small code changes
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/more.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util-linux/more.c b/util-linux/more.c
index d00cb40b8..23ac526fa 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -57,8 +57,10 @@ int more_main(int argc, char **argv)
/* use input from terminal unless we do "more >outfile" */
if (isatty(STDOUT_FILENO)) {
cin = fopen(CURRENT_TTY, "r");
+ /* Huh? why not just fail if "/dev/tty" isn't available?
+ * If user has no ctty, it's his own problem */
if (!cin)
- cin = xfopen(CONSOLE_DEV, "r");
+ cin = xfopen(DEV_CONSOLE, "r");
please_display_more_prompt = 2;
#if ENABLE_FEATURE_USE_TERMIOS
cin_fileno = fileno(cin);