summaryrefslogtreecommitdiff
path: root/libbb/xfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r--libbb/xfuncs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 177247c6b..67c986640 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -612,7 +612,7 @@ void selinux_or_die(void)
612 612
613/* It is perfectly ok to pass in a NULL for either width or for 613/* It is perfectly ok to pass in a NULL for either width or for
614 * height, in which case that value will not be set. */ 614 * height, in which case that value will not be set. */
615int get_terminal_width_height(const int fd, int *width, int *height) 615int get_terminal_width_height(int fd, int *width, int *height)
616{ 616{
617 struct winsize win = { 0, 0, 0, 0 }; 617 struct winsize win = { 0, 0, 0, 0 };
618 int ret = ioctl(fd, TIOCGWINSZ, &win); 618 int ret = ioctl(fd, TIOCGWINSZ, &win);