aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index dc160bf5c..240ac5d3d 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -572,7 +572,7 @@ void xstat(char *name, struct stat *stat_buf)
572 572
573/* It is perfectly ok to pass in a NULL for either width or for 573/* It is perfectly ok to pass in a NULL for either width or for
574 * height, in which case that value will not be set. */ 574 * height, in which case that value will not be set. */
575int get_terminal_width_height(int fd, int *width, int *height) 575int get_terminal_width_height(const int fd, int *width, int *height)
576{ 576{
577 struct winsize win = { 0, 0, 0, 0 }; 577 struct winsize win = { 0, 0, 0, 0 };
578 int ret = ioctl(fd, TIOCGWINSZ, &win); 578 int ret = ioctl(fd, TIOCGWINSZ, &win);