aboutsummaryrefslogtreecommitdiff
path: root/toys/other/vmstat.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-09-01 19:17:12 -0500
committerRob Landley <rob@landley.net>2015-09-01 19:17:12 -0500
commit3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72 (patch)
treeff0e24a44840c0c9b1d5e0b96793e2a80d772e1f /toys/other/vmstat.c
parent7d58b3085c6ebaa02cf567f25a741b878ee0a87c (diff)
downloadtoybox-3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72.tar.gz
Trivial code style tweak.
Diffstat (limited to 'toys/other/vmstat.c')
-rw-r--r--toys/other/vmstat.c3
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;