From ea9120ee248a42be3eb2617cb094288615b305c8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 15 May 2017 09:21:00 -0600 Subject: [PATCH] Always used TIOCGWINSZ. --- lib/util/ttysize.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/util/ttysize.c b/lib/util/ttysize.c index 612698c7e..01a9ca27c 100644 --- a/lib/util/ttysize.c +++ b/lib/util/ttysize.c @@ -30,7 +30,6 @@ #include "sudo_debug.h" #include "sudo_util.h" -#ifdef TIOCGWINSZ static int get_ttysize_ioctl(int *rowp, int *colp) { @@ -45,13 +44,6 @@ get_ttysize_ioctl(int *rowp, int *colp) } debug_return_int(-1); } -#else -static int -get_ttysize_ioctl(int *rowp, int *colp) -{ - return -1; -} -#endif /* TIOCGWINSZ */ void sudo_get_ttysize_v1(int *rowp, int *colp) -- 2.40.0