svn commit: trunk/busybox/miscutils

landley at busybox.net landley at busybox.net
Thu May 25 21:12:41 UTC 2006


Author: landley
Date: 2006-05-25 14:12:40 -0700 (Thu, 25 May 2006)
New Revision: 15170

Log:
Remove pointless #define.


Modified:
   trunk/busybox/miscutils/less.c


Changeset:
Modified: trunk/busybox/miscutils/less.c
===================================================================
--- trunk/busybox/miscutils/less.c	2006-05-25 18:53:06 UTC (rev 15169)
+++ trunk/busybox/miscutils/less.c	2006-05-25 21:12:40 UTC (rev 15170)
@@ -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 @@
 	}
 
 	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;




More information about the busybox-cvs mailing list