aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h2
-rw-r--r--libbb/xfuncs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 30d3006ad..0b066d1bd 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -570,7 +570,7 @@ extern void vfork_daemon(int nochdir, int noclose);
extern void vfork_daemon_rexec(int nochdir, int noclose,
int argc, char **argv, char *foreground_opt);
#endif
-extern int get_terminal_width_height(int fd, int *width, int *height);
+extern int get_terminal_width_height(const int fd, int *width, int *height);
int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);
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);