From 3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 1 Sep 2015 19:17:12 -0500 Subject: Trivial code style tweak. --- toys/other/vmstat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c index 5b79702b..ad76a070 100644 --- a/toys/other/vmstat.c +++ b/toys/other/vmstat.c @@ -96,7 +96,8 @@ void vmstat_main(void) // Print headers if (rows>3 && !(loop % (rows-3))) { - const char *header = headers; + char *header = headers; + if (isatty(1)) terminal_size(0, &rows); else rows = 0; -- cgit v1.2.3