Fix precedence error in vmstat.
toys/other/vmstat.c:98:12: error: logical not is only
applied to the left hand side of this bitwise operator
[-Werror,-Wlogical-not-parentheses]
if ((!toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows);
^ ~
diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c
index 8e131d9..44f73d4 100644
--- a/toys/other/vmstat.c
+++ b/toys/other/vmstat.c
@@ -95,7 +95,7 @@
if (rows>3 && !(loop % (rows-3))) {
char *header = headers;
- if ((!toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows);
+ if (!(toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows);
else rows = 0;
printf("procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----\n");