diff options
author | anton <anton@cvs.openbsd.org> | 2017-06-17 18:14:48 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2017-06-17 18:14:48 +0000 |
commit | 1b94aa40e799f66bc6b1a3373bb4531bce4307d7 (patch) | |
tree | abecb3efb27badcb565e0e5fb6ca19b8054a45be /bin/csh/file.c | |
parent | 83e6f348c66ce30dda23ed2358b76503868d9cdd (diff) |
Move win variable.
ok deraadt@ tb@
Diffstat (limited to 'bin/csh/file.c')
-rw-r--r-- | bin/csh/file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/csh/file.c b/bin/csh/file.c index c077e3aa891..57fff0be111 100644 --- a/bin/csh/file.c +++ b/bin/csh/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.23 2015/12/26 13:48:38 mestre Exp $ */ +/* $OpenBSD: file.c,v 1.24 2017/06/17 18:14:47 anton Exp $ */ /* $NetBSD: file.c,v 1.11 1996/11/08 19:34:37 christos Exp $ */ /*- @@ -224,14 +224,13 @@ filetype(Char *dir, Char *file) return (' '); } -static struct winsize win; - /* * Print sorted down columns */ static void print_by_column(Char *dir, Char *items[], int count) { + struct winsize win; int i, rows, r, c, maxwidth = 0, columns; if (ioctl(SHOUT, TIOCGWINSZ, (ioctl_t) & win) < 0 || win.ws_col == 0) |