From: Shivaji Varma Date: Mon, 10 Nov 2014 10:45:24 +0000 (+0530) Subject: Update winsize.c X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=9a9ba373e483289a2747a765d8609198fb1bffa0;p=mirrors%2FPrograms.git Update winsize.c --- diff --git a/c/winsize.c b/c/winsize.c index 03c1f7c..3fbb76e 100644 --- a/c/winsize.c +++ b/c/winsize.c @@ -3,8 +3,7 @@ static int get_win_size (int fd, struct winsize *win) { - int err = ioctl (fd, TIOCGWINSZ, (char *) win); - return err; + return ioctl (fd, TIOCGWINSZ, (char *) win); } int main(void) {