diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-02-17 15:52:02 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-02-17 15:52:02 +0000 |
commit | d01c2739ee04c79a8da5fb68ef889d862e747921 (patch) | |
tree | 3c6f8dd683c840fd4855f86e6956db38ad9320bb /util-linux | |
parent | de436fdcedf26d45531d2c147c9b03c778514600 (diff) | |
download | busybox-w32-d01c2739ee04c79a8da5fb68ef889d862e747921.tar.gz busybox-w32-d01c2739ee04c79a8da5fb68ef889d862e747921.tar.bz2 busybox-w32-d01c2739ee04c79a8da5fb68ef889d862e747921.zip |
init: code readability enhancements; very small code changes
git-svn-id: svn://busybox.net/trunk/busybox@17917 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/more.c | 4 |
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) | |||
57 | /* use input from terminal unless we do "more >outfile" */ | 57 | /* use input from terminal unless we do "more >outfile" */ |
58 | if (isatty(STDOUT_FILENO)) { | 58 | if (isatty(STDOUT_FILENO)) { |
59 | cin = fopen(CURRENT_TTY, "r"); | 59 | cin = fopen(CURRENT_TTY, "r"); |
60 | /* Huh? why not just fail if "/dev/tty" isn't available? | ||
61 | * If user has no ctty, it's his own problem */ | ||
60 | if (!cin) | 62 | if (!cin) |
61 | cin = xfopen(CONSOLE_DEV, "r"); | 63 | cin = xfopen(DEV_CONSOLE, "r"); |
62 | please_display_more_prompt = 2; | 64 | please_display_more_prompt = 2; |
63 | #if ENABLE_FEATURE_USE_TERMIOS | 65 | #if ENABLE_FEATURE_USE_TERMIOS |
64 | cin_fileno = fileno(cin); | 66 | cin_fileno = fileno(cin); |