diff options
author | Rob Landley <rob@landley.net> | 2006-05-25 21:12:40 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-25 21:12:40 +0000 |
commit | 5a2997de72d9e57daed8196b0b9e799b604f212d (patch) | |
tree | 4edb051d09978ff1eafe2b7959afbf8d8d6ed6c0 /miscutils/less.c | |
parent | ade7f95bd1a7356ad6f5ae4bb58100eed37ab452 (diff) | |
download | busybox-w32-5a2997de72d9e57daed8196b0b9e799b604f212d.tar.gz busybox-w32-5a2997de72d9e57daed8196b0b9e799b604f212d.tar.bz2 busybox-w32-5a2997de72d9e57daed8196b0b9e799b604f212d.zip |
Remove pointless #define.
Diffstat (limited to 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index ecc55688c..7de183656 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -70,9 +70,6 @@ | |||
70 | /* Maximum number of lines in a file */ | 70 | /* Maximum number of lines in a file */ |
71 | #define MAXLINES 10000 | 71 | #define MAXLINES 10000 |
72 | 72 | ||
73 | /* Get height and width of terminal */ | ||
74 | #define tty_width_height() get_terminal_width_height(0, &width, &height) | ||
75 | |||
76 | static int height; | 73 | static int height; |
77 | static int width; | 74 | static int width; |
78 | static char **files; | 75 | static char **files; |
@@ -1136,7 +1133,7 @@ int less_main(int argc, char **argv) { | |||
1136 | } | 1133 | } |
1137 | 1134 | ||
1138 | strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]); | 1135 | strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]); |
1139 | tty_width_height(); | 1136 | get_terminal_width_height(0, &width, &height) |
1140 | data_readlines(); | 1137 | data_readlines(); |
1141 | tcgetattr(fileno(inp), &term_orig); | 1138 | tcgetattr(fileno(inp), &term_orig); |
1142 | term_vi = term_orig; | 1139 | term_vi = term_orig; |