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=refs%2Fpull%2F1%2Fhead;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) {