Hi,
Tiny diff, move the win variable into print_by_column() since it's the
only function using it.

Comments? OK?

Index: file.c
===================================================================
RCS file: /cvs/src/bin/csh/file.c,v
retrieving revision 1.23
diff -u -p -r1.23 file.c
--- file.c      26 Dec 2015 13:48:38 -0000      1.23
+++ file.c      17 Jun 2017 17:32:19 -0000
@@ -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)

Reply via email to