Remove pointless #define.
authorRob Landley <rob@landley.net>
Thu, 25 May 2006 21:12:40 +0000 (21:12 -0000)
committerRob Landley <rob@landley.net>
Thu, 25 May 2006 21:12:40 +0000 (21:12 -0000)
miscutils/less.c

index ecc55688c4a0f4c55aefea9f0d9fc12a21fba42b..7de1836568798f19a4df8e179d86e259c9a088da 100644 (file)
@@ -70,9 +70,6 @@
 /* Maximum number of lines in a file */
 #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 width;
 static char **files;
@@ -1136,7 +1133,7 @@ int less_main(int argc, char **argv) {
        }
 
        strcpy(filename, (inp_stdin) ? bb_msg_standard_input : files[0]);
-       tty_width_height();
+       get_terminal_width_height(0, &width, &height)
        data_readlines();
        tcgetattr(fileno(inp), &term_orig);
        term_vi = term_orig;