mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
Remove pointless #define.
This commit is contained in:
parent
ade7f95bd1
commit
5a2997de72
@ -70,9 +70,6 @@
|
|||||||
/* Maximum number of lines in a file */
|
/* Maximum number of lines in a file */
|
||||||
#define MAXLINES 10000
|
#define MAXLINES 10000
|
||||||
|
|
||||||
/* Get height and width of terminal */
|
|
||||||
#define tty_width_height() get_terminal_width_height(0, &width, &height)
|
|
||||||
|
|
||||||
static int height;
|
static int height;
|
||||||
static int width;
|
static int width;
|
||||||
static char **files;
|
static char **files;
|
||||||
@ -1136,7 +1133,7 @@ int less_main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]);
|
strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]);
|
||||||
tty_width_height();
|
get_terminal_width_height(0, &width, &height)
|
||||||
data_readlines();
|
data_readlines();
|
||||||
tcgetattr(fileno(inp), &term_orig);
|
tcgetattr(fileno(inp), &term_orig);
|
||||||
term_vi = term_orig;
|
term_vi = term_orig;
|
||||||
|
Loading…
Reference in New Issue
Block a user