From 9729696c5cb03cde296e7e9a327ff09ce31e1f42 Mon Sep 17 00:00:00 2001 From: aldot Date: Sat, 20 Jan 2007 21:33:50 +0000 Subject: - get_terminal_width_height does not and should never write to fd. Cosmetic Precaution git-svn-id: svn://busybox.net/trunk/busybox@17421 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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 dc160bf5c..240ac5d3d 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -572,7 +572,7 @@ void xstat(char *name, struct stat *stat_buf) /* 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(int fd, int *width, int *height) +int get_terminal_width_height(const int fd, int *width, int *height) { struct winsize win = { 0, 0, 0, 0 }; int ret = ioctl(fd, TIOCGWINSZ, &win); -- cgit v1.2.3-55-g6feb