diff options
author | Rob Landley <rob@landley.net> | 2015-09-01 19:17:12 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-09-01 19:17:12 -0500 |
commit | 3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72 (patch) | |
tree | ff0e24a44840c0c9b1d5e0b96793e2a80d772e1f /toys/other | |
parent | 7d58b3085c6ebaa02cf567f25a741b878ee0a87c (diff) | |
download | toybox-3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72.tar.gz |
Trivial code style tweak.
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/vmstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |