- get_terminal_width_height does not and should never write to fd. Cosmetic Precaution

This commit is contained in:
Bernhard Reutner-Fischer committed 2007-01-20 21:33:50 +00:00
1 parent d19f4aaa21
commit af45760cca
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);