diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-20 21:33:50 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-20 21:33:50 +0000 |
commit | af45760cca1bad4ccd25ed91605edfd2ffb9426e (patch) | |
tree | d522d6eb89df384b6fe56b100028b4b8af9dda35 /libbb | |
parent | d19f4aaa21b9530f59f51465df18a376c7ba30e6 (diff) | |
download | busybox-af45760cca1bad4ccd25ed91605edfd2ffb9426e.tar.gz |
- get_terminal_width_height does not and should never write to fd. Cosmetic Precaution
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 2 |
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) /* 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); |