Making note of my changes
[oweals/busybox.git] / more.c
diff --git a/more.c b/more.c
index 7d0ddb8ece069c2007c3de8fd53edd7f1025f788..821427dda35b206a89c7f5b6f9ef7fbb3e56fc7b 100644 (file)
--- a/more.c
+++ b/more.c
  *
  */
 
-
-/* Turning this off makes things a bit smaller (and less pretty) */
-#define BB_FEATURE_USE_TERMIOS
-/* Turning this off makes things a bit smaller (and less pretty) */
-#define BB_FEATURE_AUTOWIDTH
-
-
-
 #include "internal.h"
 #include <stdio.h>
 #include <fcntl.h>
@@ -122,7 +114,7 @@ extern int more_main(int argc, char **argv)
        stty(fileno(cin), &new_settings);
 
 #ifdef BB_FEATURE_AUTOWIDTH    
-       ioctl(STDOUT_FILENO, TIOCGWINSZ, &win);
+       ioctl(fileno(stdout), TIOCGWINSZ, &win);
        if (win.ws_row > 4) 
            terminal_height = win.ws_row - 2;
        if (win.ws_col > 0)