From f893da875a24138fac30f070c7101b5330f0fef0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 9 Aug 2007 08:27:24 +0000 Subject: ls,ps,watch: measure terminal width on fd 0, not 1 --- libbb/xfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 177247c..67c9866 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -612,7 +612,7 @@ void selinux_or_die(void) /* It is perfectly ok to pass in a NULL for either width or for * height, in which case that value will not be set. */ -int get_terminal_width_height(const int fd, int *width, int *height) +int get_terminal_width_height(int fd, int *width, int *height) { struct winsize win = { 0, 0, 0, 0 }; int ret = ioctl(fd, TIOCGWINSZ, &win); -- cgit v1.1