diff options
Diffstat (limited to 'util-linux/more.c')
-rw-r--r-- | util-linux/more.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/util-linux/more.c b/util-linux/more.c index 2ad1e797c..f68292e80 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -11,28 +11,9 @@ | |||
11 | * | 11 | * |
12 | * Termios corrects by Vladimir Oleynik <dzo@simtreas.ru> | 12 | * Termios corrects by Vladimir Oleynik <dzo@simtreas.ru> |
13 | * | 13 | * |
14 | * This program is free software; you can redistribute it and/or modify | 14 | * Licensed under GPLv2 or later, see file License in this tarball for details. |
15 | * it under the terms of the GNU General Public License as published by | ||
16 | * the Free Software Foundation; either version 2 of the License, or | ||
17 | * (at your option) any later version. | ||
18 | * | ||
19 | * This program is distributed in the hope that it will be useful, | ||
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
22 | * General Public License for more details. | ||
23 | * | ||
24 | * You should have received a copy of the GNU General Public License | ||
25 | * along with this program; if not, write to the Free Software | ||
26 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
27 | * | ||
28 | */ | 15 | */ |
29 | 16 | ||
30 | #include <stdio.h> | ||
31 | #include <fcntl.h> | ||
32 | #include <signal.h> | ||
33 | #include <stdlib.h> | ||
34 | #include <unistd.h> | ||
35 | #include <sys/ioctl.h> | ||
36 | #include "busybox.h" | 17 | #include "busybox.h" |
37 | 18 | ||
38 | 19 | ||
@@ -76,7 +57,7 @@ int more_main(int argc, char **argv) | |||
76 | if(isatty(STDOUT_FILENO)) { | 57 | if(isatty(STDOUT_FILENO)) { |
77 | cin = fopen(CURRENT_TTY, "r"); | 58 | cin = fopen(CURRENT_TTY, "r"); |
78 | if (!cin) | 59 | if (!cin) |
79 | cin = bb_xfopen(CONSOLE_DEV, "r"); | 60 | cin = xfopen(CONSOLE_DEV, "r"); |
80 | please_display_more_prompt = 2; | 61 | please_display_more_prompt = 2; |
81 | #ifdef CONFIG_FEATURE_USE_TERMIOS | 62 | #ifdef CONFIG_FEATURE_USE_TERMIOS |
82 | cin_fileno = fileno(cin); | 63 | cin_fileno = fileno(cin); |